Changeset 55 for trunk/src/get_field.m
- Timestamp:
- Mar 17, 2010, 10:26:41 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r38 r55 228 228 for icell=1:numel(CellVarIndex) 229 229 VarIndex=CellVarIndex{icell}; 230 if ~isempty(find(VarIndex==yindex )) && (isempty(VarType{icell}.coord_x)||~isequal(VarType{icell}.coord_x,VarIndex))230 if ~isempty(find(VarIndex==yindex,1)) && (isempty(VarType{icell}.coord_x)||~isequal(VarType{icell}.coord_x,VarIndex)) 231 231 cell_select=icell; 232 232 break … … 237 237 set(handles.abscissa,'Value',min(val,2)); 238 238 coord_x_index=VarType{cell_select}.coord; 239 coord_x_index=coord_x_index( find(coord_x_index));239 coord_x_index=coord_x_index(coord_x_index~=0); 240 240 set(handles.abscissa,'String',[{''}; (Field.ListVarName(coord_x_index))'; (Field.ListVarName(VarIndex))']) 241 241 % Field.VarIndex.y=yindex; … … 1245 1245 %default setting for the visibility of the GUI elements* 1246 1246 if ~isequal(ACTION,'PLOT') 1247 varargout=feval(ACTION) % input list asked by the selected function1247 varargout=feval(ACTION);% input list asked by the selected function 1248 1248 test_1Dplot=[]; 1249 1249 test_scalar=[]; … … 1253 1253 %RootFile always visible 1254 1254 case 'check_1Dplot' 1255 test_1Dplot=isequal(lower(varargout{ilist,2}),'y') 1255 test_1Dplot=isequal(lower(varargout{ilist,2}),'y'); 1256 1256 case 'check_scalar' 1257 test_scalar=isequal(lower(varargout{ilist,2}),'y') 1257 test_scalar=isequal(lower(varargout{ilist,2}),'y'); 1258 1258 case 'check_vector' 1259 test_vector=isequal(lower(varargout{ilist,2}),'y') 1259 test_vector=isequal(lower(varargout{ilist,2}),'y'); 1260 1260 end 1261 1261 end … … 1449 1449 set(handles.MenuFile_5,'Label',MenuFile_5) 1450 1450 dir_perso=prefdir; 1451 profil_perso=fullfile(dir_perso,'uvmat_perso.mat') 1451 profil_perso=fullfile(dir_perso,'uvmat_perso.mat'); 1452 display(profil_perso) 1452 1453 if exist(profil_perso,'file') 1453 1454 save (profil_perso,'MenuFile_1','MenuFile_2','MenuFile_3','MenuFile_4', 'MenuFile_5','-append'); %store the file names for future opening of uvmat
Note: See TracChangeset
for help on using the changeset viewer.