Changeset 961 for trunk/src/uvmat.m
- Timestamp:
- Jun 28, 2016, 9:05:33 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r956 r961 991 991 data.RangeY=UvData.Field.CoordMesh; 992 992 case 'plane_z' 993 data.Angle=[ 00 0];994 data.DX= 10*UvData.Field.CoordMesh;995 data.DY= 10*UvData.Field.CoordMesh;993 data.Angle=[90 0]; 994 data.DX=UvData.Field.CoordMesh; 995 data.DY=UvData.Field.CoordMesh; 996 996 data.RangeZ=UvData.Field.CoordMesh; 997 997 otherwise … … 2355 2355 NomType=get(handles.NomType,'String'); 2356 2356 indices=get(handles.FileIndex,'String'); 2357 [tild,tild,tild,i1,i2,j1,j2]=fileparts_uvmat(indices);% the indices for the second series taken from FileIndex 2358 switch index_rank 2359 case 1 2360 indices=fullfile_uvmat('','','','',NomType,stra2num(get(handles.i1,'String')),i2,j1,j2);2361 % set(handles.i1,'BackgroundColor',[0.7 0.7 0.7])% mark the edit box in grey, then RUN0 will mark it in white for confirmation 2362 case 22363 indices=fullfile_uvmat('','','','',NomType,i1,stra2num(get(handles.i2,'String')),j1,j2);2364 % set(handles.i2,'BackgroundColor',[0.7 0.7 0.7])% mark the edit box in grey, then RUN0 will mark it in white for confirmation 2365 case 32366 indices=fullfile_uvmat('','','','',NomType,i1,i2,stra2num(get(handles.j1,'String')),j2);2367 % set(handles.j1,'BackgroundColor',[0.7 0.7 0.7])% mark the edit box in grey, then RUN0 will mark it in white for confirmation 2368 case 42369 indices=fullfile_uvmat('','','','',NomType,i1,i2,j1,stra2num(get(handles.j2,'String')));2370 % set(handles.j2,'BackgroundColor',[0.7 0.7 0.7])% mark the edit box in grey, then RUN0 will mark it in white for confirmation 2357 if strcmp(NomType,'level') 2358 indices=get(handles.i1,'String'); 2359 else 2360 [tild,tild,tild,i1,i2,j1,j2]=fileparts_uvmat(indices);% the indices for the second series taken from FileIndex 2361 switch index_rank 2362 case 1 2363 indices=fullfile_uvmat('','','','',NomType,stra2num(get(handles.i1,'String')),i2,j1,j2); 2364 case 2 2365 indices=fullfile_uvmat('','','','',NomType,i1,stra2num(get(handles.i2,'String')),j1,j2); 2366 case 3 2367 indices=fullfile_uvmat('','','','',NomType,i1,i2,stra2num(get(handles.j1,'String')),j2); 2368 case 4 2369 indices=fullfile_uvmat('','','','',NomType,i1,i2,j1,stra2num(get(handles.j2,'String'))); 2370 end 2371 2371 end 2372 2372 set(handles.FileIndex,'String',indices) 2373 %set(handles.FileIndex,'BackgroundColor',[0.7 0.7 0.7])% mark the edit box in grey, then RUN0 will mark it in white for confirmation 2373 2374 2374 % update the second index if relevant 2375 2375 if strcmp(get(handles.FileIndex_1,'Visible'),'on') … … 2944 2944 set(handles.j2,'String',num2stra(j2,NomType,2)); 2945 2945 end 2946 if strcmp(NomType,'level') 2947 indices=num2str(i1); 2948 else 2946 2949 indices=fullfile_uvmat('','','','',NomType,i1,i2,j1,j2); 2950 end 2947 2951 set(handles.FileIndex,'String',indices); 2948 2952 if ~isempty(filename_1) … … 3151 3155 if isempty(i2), set(handles.i2,'String',''); end % suppress the second i index display if not used 3152 3156 if isempty(j2), set(handles.j2,'String',''); end % suppress the second j index display if not used 3157 if strcmp(get(handles.NomType,'String'),'level') 3158 jindex=str2num(get(handles.j1,'String')); 3159 filename=[fullfile(RootPath,SubDir,['level' num2str(jindex)],RootFile) FileIndex FileExt];% build the input file name (first line) 3160 else 3153 3161 filename=[fullfile(RootPath,SubDir,RootFile) FileIndex FileExt];% build the input file name (first line) 3162 end 3154 3163 filename_1='';%default second file name 3155 3164 FileIndex_1='';
Note: See TracChangeset
for help on using the changeset viewer.