Changeset 89 for trunk/src/get_field.m
- Timestamp:
- May 20, 2010, 1:48:25 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r59 r89 55 55 % Update handles structure 56 56 guidata(hObject, handles); 57 %pathuvmat=fileparts(which('uvmat')); 58 %addpath(fullfile(pathuvmat,'FIELD_FCT')) 59 %loads the information stored in prefdir to initiate the browser and the list of functions 57 58 %ACTION menu: builtin fcts 60 59 menu_str={'PLOT';'FFT';'filter_band';'histogram'}; %list of functions included in 'get_field.m' 61 nb_builtin=numel(menu_str)-1; 62 %menu_str(end)=[];%remove from the list the last option 'more...' 63 path_get_field=fileparts(which('get_field'));%path of the function 'get_field' 60 nb_builtin=numel(menu_str); 61 path_uvmat=fileparts(which('uvmat'));%path of the function 'uvmat' 62 addpath(fullfile(path_uvmat,'get_field')) 63 testexist=zeros(size(menu_str'));%default 64 64 for ilist=1:length(menu_str) 65 fct_path{ilist,1}=fullfile(path_get_field,'get_field');%paths of the fuctions buil-in in 'get_field.m' 66 end 65 if exist(menu_str{ilist},'file') 66 fct_handle{ilist,1}=str2func(menu_str{ilist}); 67 testexist(ilist)=1; 68 else 69 fct_handle{ilist,1}=[]; 70 testexist(ilist)=0; 71 end 72 end 73 rmpath(fullfile(path_uvmat,'get_field')) 74 67 75 dir_perso=prefdir; 68 76 profil_perso=fullfile(dir_perso,'uvmat_perso.mat'); … … 73 81 for ilist=1:length(h.get_field_fct) 74 82 [path,file]=fileparts(h.get_field_fct{ilist}); 75 fct_path=[fct_path; {path}];%concatene the list of paths 76 menu_str=[menu_str; {file}]; 83 addpath(path) 84 if exist(file,'file') 85 h_func=str2func(file); 86 testexist=[testexist 1]; 87 else 88 h_func=[]; 89 testexist=[testexist 0]; 90 end 91 fct_handle=[fct_handle; {h_func}]; %concatene the list of paths 92 rmpath(path) 93 menu_str=[menu_str; {file}]; 77 94 end 78 95 end 79 96 end 97 menu_str=menu_str(testexist==1);%=menu_str(testexist~=0) 98 fct_handle=fct_handle(testexist==1); 80 99 menu_str=[menu_str;{'more...'}]; 81 100 set(handles.ACTION,'String',menu_str) 82 set(handles.ACTION,'UserData',fct_path)% store the list of path in UserData of ACTION 83 ACTION_Callback(hObject, eventdata, handles) 101 set(handles.ACTION,'UserData',fct_handle)% store the list of path in UserData of ACTION 102 set(handles.path_action,'String',fullfile(path_uvmat,'get_field')) 103 set(handles.ACTION,'Value',1)% PLOT option selected 84 104 set(hObject,'WindowButtonUpFcn',{@mouse_up_gui,handles})%set mouse click action function 85 105 if exist('filename','var')& ischar(filename) 86 set(handles.inputfile,'String',filename) 106 set(handles.inputfile,'String',filename)% prefill the input file name 107 set(handles.inputfile,'Enable','off')% desactivate the input file edit box 108 set(handles.list_fig,'Value',2)% plotting axes =uvmat selected 109 set(handles.list_fig,'Visible','off')% 110 set(handles.RUN,'Visible','off')% RUN button not visible (passive mode, get_field used to define the field for uvamt) 111 set(handles.MenuOpen,'Visible','off') 112 set(handles.MenuExport,'Visible','off') 113 set(handles.MenuHelp,'Visible','off') 87 114 inputfile_Callback(hObject, eventdata, handles) 88 115 else 89 116 set(handles.inputfile,'String','') 90 117 end 118 %ACTION_Callback(hObject, eventdata, handles) 91 119 if exist('Field','var') & isstruct(Field) 92 120 Field_input(eventdata,handles,Field) … … 194 222 if ~isempty(VarType{imax}.vector_x) && ~isempty(VarType{imax}.vector_y) 195 223 set(handles.check_vector,'Value',1) 224 set(handles.check_scalar,'Value',0) 196 225 set(handles.vector_x,'Value',VarType{imax}.vector_x) 197 226 set(handles.vector_y,'Value',VarType{imax}.vector_y) 198 set(handles.check_scalar,'Value',0) 227 if ~isempty(VarType{imax}.coord_x) && ~isempty(VarType{imax}.coord_y) 228 set(handles.coord_x_vectors,'Value',VarType{imax}.coord_x+1) 229 set(handles.coord_y_vectors,'Value',VarType{imax}.coord_y+1) 230 end 231 if ~isempty(VarType{imax}.coord) 232 set(handles.coord_y_vectors,'Value',VarType{imax}.coord(1)+1) 233 if numel(VarType{imax}.coord)>=2 234 set(handles.coord_x_vectors,'Value',VarType{imax}.coord(2)+1) 235 end 236 end 199 237 else 200 238 set(handles.check_scalar,'Value',1) … … 202 240 if isfield(VarType{imax},'scalar') && length(VarType{imax}.scalar)>=1 203 241 set(handles.scalar,'Value',VarType{imax}.scalar(1)) 242 if ~isempty(VarType{imax}.coord_x) && ~isempty(VarType{imax}.coord_y) 243 set(handles.coord_x_scalar,'Value',VarType{imax}.coord_x+1) 244 set(handles.coord_y_scalar,'Value',VarType{imax}.coord_y+1) 245 end 246 if ~isempty(VarType{imax}.coord) 247 set(handles.coord_y_scalar,'Value',VarType{imax}.coord(1)+1) 248 if numel(VarType{imax}.coord)>=2 249 set(handles.coord_x_scalar,'Value',VarType{imax}.coord(2)+1) 250 end 251 end 204 252 end 205 253 end … … 284 332 % update_UserData(handles) 285 333 286 %------------------------------------------------------- 334 %------------------------------------------------------------------------ 287 335 % --- Executes on selection change in scalar menu. 288 336 function scalar_Callback(hObject, eventdata, handles) 289 %------------------------------------------------------- 337 %------------------------------------------------------------------------ 290 338 Aindex=get(handles.scalar,'Value'); 291 339 Astring=get(handles.scalar,'String'); … … 293 341 update_field(hObject, eventdata, handles,VarName) 294 342 295 %------------------------------------------------------- 343 %------------------------------------------------------------------------ 296 344 % --- Executes on selection change in coord_x_scalar. 297 345 function coord_x_scalar_Callback(hObject, eventdata, handles) 298 %------------------------------------------------------- 346 %------------------------------------------------------------------------ 299 347 index=get(handles.coord_x_scalar,'Value'); 300 348 string=get(handles.coord_x_scalar,'String'); … … 302 350 update_field(hObject, eventdata, handles,VarName) 303 351 304 %------------------------------------------------------- 352 %------------------------------------------------------------------------ 305 353 % --- Executes on selection change in coord_y_scalar. 306 354 function coord_y_scalar_Callback(hObject, eventdata, handles) 307 %------------------------------------------------------- 355 %------------------------------------------------------------------------ 308 356 index=get(handles.coord_y_scalar,'Value'); 309 357 string=get(handles.coord_y_scalar,'String'); … … 311 359 update_field(hObject, eventdata, handles,VarName) 312 360 313 %------------------------------------------------------- 361 %------------------------------------------------------------------------ 314 362 % --- Executes on selection change in coord_z_scalar. 315 363 function coord_z_scalar_Callback(hObject, eventdata, handles) 316 %------------------------------------------------------- 364 %------------------------------------------------------------------------ 317 365 index=get(handles.coord_z_scalar,'Value'); 318 366 string=get(handles.coord_z_scalar,'String'); … … 320 368 update_field(hObject, eventdata, handles,VarName) 321 369 322 %------------------------------------------------------- 370 %------------------------------------------------------------------------ 323 371 % --- Executes on selection change in vector_x. 324 372 function vector_x_Callback(hObject, eventdata, handles) 325 %------------------------------------------------------- 373 %------------------------------------------------------------------------ 326 374 index=get(handles.vector_x,'Value'); 327 375 string=get(handles.vector_x,'String'); … … 329 377 update_field(hObject, eventdata, handles,VarName) 330 378 331 %------------------------------------------------------- 379 %------------------------------------------------------------------------ 332 380 % --- Executes on selection change in vector_y. 333 381 function vector_y_Callback(hObject, eventdata, handles) 334 %------------------------------------------------------- 382 %------------------------------------------------------------------------ 335 383 index=get(handles.vector_y,'Value'); 336 384 string=get(handles.vector_y,'String'); … … 338 386 update_field(hObject, eventdata, handles,VarName) 339 387 340 %------------------------------------------------------- 388 %------------------------------------------------------------------------ 341 389 % --- Executes on selection change in vector_z. 342 390 function vector_z_Callback(hObject, eventdata, handles) 343 %------------------------------------------------------- 391 %------------------------------------------------------------------------ 344 392 index=get(handles.vector_z,'Value'); 345 393 string=get(handles.vector_z,'String'); … … 347 395 update_field(hObject, eventdata, handles,VarName) 348 396 349 %------------------------------------------------------- 397 %------------------------------------------------------------------------ 350 398 % --- Executes on selection change in coord_x_vectors. 351 399 function coord_x_vectors_Callback(hObject, eventdata, handles) 352 %------------------------------------------------------- 400 %------------------------------------------------------------------------ 353 401 index=get(handles.coord_x_vectors,'Value'); 354 402 string=get(handles.coord_x_vectors,'String'); … … 736 784 function RUN_Callback(hObject, eventdata, handles) 737 785 %--------------------------------------------------------- 738 path_get_field=fileparts(which('get_field'));739 list=get(handles.ACTION,'String');786 %path_get_field=fileparts(which('get_field')); 787 %list=get(handles.ACTION,'String'); 740 788 index=get(handles.ACTION,'Value'); 741 ACTION=list{index}; 742 list_path=get(handles.ACTION,'UserData'); 743 %hselect_field=get(handles.inputfile,'parent');%handle of the get_field interface 744 fct_path=list_path{index}; %path stored for the function ACTION 745 if ~isequal(fct_path,path_get_field) 746 % eval(['spath=which(''' action ''');']) %spath = current path of the selected function ACTION 747 % if ~isequal(spath,fct_path)& exist(fct_path,'dir') 748 addpath(fct_path)% add the prescribed path if not the current one 749 % end 750 end 751 % fct_path 752 eval(['h_fun=@' ACTION ';']) 753 if ~isequal(fct_path,path_get_field) 754 rmpath(fct_path)% add the prescribed path if not the current one 755 end 756 789 % ACTION=list{index}; 790 list_func=get(handles.ACTION,'UserData'); 791 h_fun=list_func{index}; 792 % %hselect_field=get(handles.inputfile,'parent');%handle of the get_field interface 793 % fct_path=list_path{index}; %path stored for the function ACTION 794 % if ~isequal(fct_path,path_get_field) 795 % addpath(fct_path)% add the prescribed path if not the current one 796 % end 797 % eval(['h_fun=@' ACTION ';']) 798 % if ~isequal(fct_path,path_get_field) 799 % rmpath(fct_path)% add the prescribed path if not the current one 800 % end 757 801 set(handles.RUN,'BackgroundColor',[0.831 0.816 0.784]) 758 802 drawnow 759 h_fun(handles.figure1);%handles.figure1 =handles of the GUI get_field 803 SubField=h_fun(handles.figure1);%handles.figure1 =handles of the GUI get_field 804 if ~isempty(SubField) 805 plot_get_field(SubField,handles) 806 end 760 807 browse_fig(handles.list_fig); %update the list of new existing figures 761 808 809 %------------------------------------------------------------------------ 810 function plot_get_field(SubField,handles) 811 %------------------------------------------------------------------------ 812 list_fig=get(handles.list_fig,'String'); 813 val=get(handles.list_fig,'Value'); 814 if strcmp(list_fig{val},'uvmat') 815 set(handles.figure1,'Name','uvmat_field') 816 set(handles.inputfile,'Enable','off')% desactivate the input file edit box 817 % set(handles.list_fig,'Visible','off')% 818 set(handles.RUN,'Visible','off')% RUN button not visible (passive mode, get_field used to define the field for uvamt) 819 set(handles.MenuOpen,'Visible','off') 820 set(handles.MenuExport,'Visible','off') 821 uvmat(get(handles.inputfile,'String')) 822 else 823 hfig=str2num(list_fig{val});% chosen figure number from tyhe GUI 824 if isempty(hfig) 825 hfig=figure; 826 list_fig=[list_fig;num2str(hfig)]; 827 set(handles.list_fig,'String',list_fig); 828 haxes=axes; 829 else 830 figure(hfig); 831 end 832 haxes=findobj(hfig,'Type','axes'); 833 plot_field(SubField,haxes) 834 end 762 835 763 836 %------------------------------------------------ … … 1038 1111 if isequal(val,0) 1039 1112 set(handles.PanelScalar,'Visible','off') 1040 % set(handles.scalar,'Visible','off')1041 % set(handles.ordinate,'Max',2.0)%allow multiple ordinate input option1042 % if isequal(get(handles.check_vector,'Value'),0);1043 % set(handles.coord_z_vectors_scalar,'Visible','off')1044 % end1045 1113 else 1046 1114 set(handles.PanelScalar,'Visible','on') 1047 % set(handles.scalar,'Visible','on')1048 % val=get(handles.ordinate,'Value');1049 % val=val(1);1050 % set(handles.ordinate,'Value',val);%suppress multiple ordinates1051 % set(handles.ordinate,'Max',1.0);%suppress multiple ordinate input option1052 % set(handles.coord_z_vectors_scalar,'Visible','on')1053 1115 end 1054 1116 … … 1062 1124 set(handles.PanelVectors,'Visible','on') 1063 1125 end 1064 1065 1066 1126 1067 1127 %----------------------------- … … 1088 1148 index_ACTION=get(handles.ACTION,'Value');% selected string index 1089 1149 ACTION= list_ACTION{index_ACTION}; % selected string 1090 path_get_field=which('get_field');%path to series.m 1091 list_path=get(handles.ACTION,'UserData'); 1092 1093 % nb_builtin=0; 1094 % if iscell(list_path) 1095 % for ilist=1:length(list_path) 1096 % if isequal(list_path{ilist},path_get_field) 1097 % nb_builtin=nb_builtin+1; 1098 % else 1099 % break 1100 % end 1101 % end 1102 % end 1103 % if nb_builtin==0% the path to get_field has been changed, reinitialize 1104 % get_field_OpeningFcn(hObject, eventdata, handles) 1105 % return 1106 % end 1107 1150 list_func_handles=get(handles.ACTION,'UserData');% get list of function handles (full address of the function, including name and path) 1151 ff=functions(list_func_handles{end}); 1108 1152 % add a new function to the menu 1109 1153 if isequal(ACTION,'more...') 1110 pathfct=fileparts(path_get_field);1111 browse_name=fullfile(path_get_field,'FIELD_FCT');1112 if length(list_path)>nb_builtin1113 browse_name=list_path{end};% initialize browser with the path of the last introduced function1114 end1154 % pathfct=fileparts(path_get_field); 1155 % browse_name=fullfile(path_get_field,'FIELD_FCT'); 1156 % if length(list_path)>nb_builtin 1157 % browse_name=list_path{end};% initialize browser with the path of the last introduced function 1158 % end 1115 1159 [FileName, PathName] = uigetfile( ... 1116 1160 {'*.m', ' (*.m)'; 1117 1161 '*.m', '.m files '; ... 1118 1162 '*.*', 'All Files (*.*)'}, ... 1119 'Pick a file', browse_name);1163 'Pick a file',ff.file); 1120 1164 if length(FileName)<2 1121 1165 return … … 1126 1170 return 1127 1171 end 1128 % ACTION=FileName(1:end-2);% ACTION choice updated by the selected item 1172 1129 1173 % insert the choice in the action menu 1130 1174 menu_str=update_menu(handles.ACTION,ACTION);%new action menu in which the new item has been appended if needed 1131 1175 index_ACTION=get(handles.ACTION,'Value');% currently selected index in the list 1132 list_path{index_ACTION}=PathName; 1176 addpath(PathName) 1177 list_func_handles{index_ACTION}=str2func(ACTION);% create the function handle corresponding to the newly seleced function 1178 set(handles.ACTION,'UserData',list_func_handles) 1179 set(handles.path_action,'enable','inactive')% indicate that the current path is accessible (not 'off') 1180 %list_path{index_ACTION}=PathName; 1133 1181 if length(menu_str)>nb_builtin+5; 1134 1182 nbremove=length(menu_str)-nb_builtin-5; 1135 1183 menu_str(nb_builtin+1:end-5)=[]; 1136 list_ path(nb_builtin+1:end-4)=[];1184 list_func_handles(nb_builtin+1:end-4)=[]; 1137 1185 index_ACTION=index_ACTION-nbremove; 1138 1186 set(handles.ACTION,'Value',index_ACTION) 1139 1187 set(handles.ACTION,'String',menu_str) 1140 end 1141 list_path{index_ACTION}=PathName; 1142 set(handles.ACTION,'UserData',list_path); 1143 set(handles.path_action,'enable','inactive')% indicate that the current path is accessible (not 'off') 1144 1188 end 1145 1189 %record the current menu in personal file profil_perso 1146 1190 dir_perso=prefdir; 1147 1191 profil_perso=fullfile(dir_perso,'uvmat_perso.mat'); 1148 1192 for ilist=nb_builtin+1:length(menu_str)-1 1149 get_field_fct{ilist-nb_builtin}=fullfile(list_path{ilist},[menu_str{ilist} '.m']); 1193 ff=functions(list_func_handles{ilist}); 1194 get_field_fct{ilist-nb_builtin}=ff.file; 1150 1195 end 1151 1196 if exist(profil_perso,'file') … … 1163 1208 end 1164 1209 1165 %check the current path to the selected function 1166 PathName=list_path{index_ACTION};%current recorded path 1167 % if ~isequal(path_get_field,PathName) 1168 % CurrentPath=fileparts(which(ACTION)); 1169 % if ~isequal(CurrentPath,PathName)%&&~isequal(CurrentPath,fullfile(PathName,'private')) 1170 % addpath(PathName) 1171 % errormsg=check_functions; 1172 % msgbox_uvmat('CONFIRMATION',[['path ' PathName ' added to the current Matlab pathes'];errormsg]) 1173 % end 1174 % end 1175 set(handles.path_action,'String',PathName); %show the path to the senlected function 1176 1177 1178 % fct_name=fullfile(PathName, FileName); 1179 % if ~exist(fct_name,'file') 1180 % msgbox_uvmat('ERROR',['procesing fct ' fct_name ' not found']) 1181 % else 1182 % ACTION=FileName(1:end-2);% 1183 % menu=update_menu(handles.ACTION,ACTION);%add the selected fct to the menu 1184 % index_ACTION=get(handles.ACTION,'Value');% selected string index 1185 % list_path{index_ACTION}=PathName; 1186 % set(handles.ACTION,'UserData',list_path) 1187 % if exist(profil_perso,'file') 1188 % save (profil_perso,'coord_fct','-append'); %store the root name for future opening of uvmat 1189 % end 1190 % end 1191 % 1192 % 1193 % fileinput=FileName;%complete file name 1194 % eval(['spath=which(''' FileName ''');'])% current path to the function FileName 1195 % if ~isequal(spath,PathName) 1196 % addpath(PathName) 1197 % end 1198 % FileName([end-1:end])=[]; 1199 % 1200 % % insert the choice in the action menu 1201 % nbACTION=length(list_ACTION); 1202 % index=0; 1203 % for ilist=1:nbACTION 1204 % if isequal(FileName,list_ACTION{ilist})%look for the selected scalar in the fields_input menu 1205 % index=ilist;% 1206 % end 1207 % end 1208 % if index==0 1209 % list_ACTION{nbACTION}=FileName; %put the chosen fct at the penultimate place in the fields_input menu 1210 % list_path{nbACTION}=PathName; 1211 % index=nbACTION; 1212 % list_ACTION{nbACTION+1}='more...'; 1213 % set(handles.ACTION,'String',list_ACTION) 1214 % end 1215 % set(handles.ACTION,'Value',index);% store the selected scalar type 1216 % set(handles.ACTION,'UserData',list_path); 1217 % usr_defined_fct=fct_name; 1218 % nbmenu=length(list_ACTION); 1219 % nbadd=nbmenu-5; 1220 % ilist=0; 1221 % for imenu=nbmenu-min(4,nbadd):nbmenu-1 1222 % ilist=ilist+1; 1223 % fct_get_field{ilist,1}=list_ACTION{imenu}; 1224 % fct_path_get_field{ilist}=list_path{imenu}; 1225 % end 1226 % if exist(profil_perso,'file') 1227 % save(profil_perso,'usr_defined_fct','fct_get_field','fct_path_get_field','-append') 1228 % else 1229 % save(profil_perso,'usr_defined_fct','fct_get_field','fct_path_get_field','-V6') 1230 % end 1231 % end 1232 1233 % %check the current path to the selected function 1234 % list_path 1235 % PathName=list_path{index_ACTION} 1236 % CurrentPath=fileparts(which(ACTION)) 1237 % if ~isequal(PathName,CurrentPath) 1238 % addpath(PathName) 1239 % errormsg=check_functions; 1240 % msgbox_uvmat('WARNING',[['path ' PathName ' added to the current Matlab pathes'];errormsg]) 1241 % end 1242 % set(handles.path_action,'String',fullfile(PathName,' ')); %show the path to the senlected function 1243 1244 %default setting for the visibility of the GUI elements* 1245 if ~isequal(ACTION,'PLOT') 1246 varargout=feval(ACTION);% input list asked by the selected function 1247 test_1Dplot=[]; 1248 test_scalar=[]; 1249 test_vector=[]; 1250 for ilist=1:length(varargout) 1251 switch varargout{ilist,1} 1210 %check the current path to the selected function 1211 h_fun=list_func_handles{index_ACTION}; 1212 if isa(h_fun,'function_handle') 1213 func=functions(h_fun); 1214 set(handles.path_action,'String',fileparts(func.file)); %show the path to the senlected function 1215 GUI_input=h_fun();%handles.figure1 =handles of the GUI get_field 1216 else 1217 set(handles.path_action,'String','') 1218 msgbox_uvmat('ERROR','unknown path to ACTION function, reload it') 1219 return 1220 end 1221 1222 %prepare the GUI options for the selected ACTION 1223 test_1Dplot=0; 1224 test_scalar=0; 1225 test_vector=0; 1226 if iscell(GUI_input) 1227 for ilist=1:length(GUI_input) 1228 switch GUI_input{ilist} 1252 1229 %RootFile always visible 1253 1230 case 'check_1Dplot' 1254 test_1Dplot= isequal(lower(varargout{ilist,2}),'y');1231 test_1Dplot=1; 1255 1232 case 'check_scalar' 1256 test_scalar= isequal(lower(varargout{ilist,2}),'y');1233 test_scalar=1; 1257 1234 case 'check_vector' 1258 test_vector= isequal(lower(varargout{ilist,2}),'y');1235 test_vector=1; 1259 1236 end 1260 1237 end 1261 if test_1Dplot==0 1262 set(handles.check_1Dplot,'Value',0); 1263 end 1264 if test_1Dplot==1 1265 set(handles.check_1Dplot,'Value',1); 1266 end 1267 if test_scalar==0 1268 set(handles.check_scalar,'Value',0); 1269 end 1270 if test_scalar==1 1271 set(handles.check_scalar,'Value',1); 1272 end 1273 if test_vector==0 1274 set(handles.check_vector,'Value',0); 1275 end 1276 if test_vector==1 1277 set(handles.check_vector,'Value',1); 1278 end 1279 check_1Dplot_Callback(hObject, eventdata, handles) 1280 check_scalar_Callback(hObject, eventdata, handles) 1281 check_vector_Callback(hObject, eventdata, handles) 1282 end 1238 end 1239 set(handles.check_1Dplot,'Value',test_1Dplot); 1240 set(handles.check_scalar,'Value',test_scalar); 1241 set(handles.check_vector,'Value',test_vector); 1242 check_1Dplot_Callback(hObject, eventdata, handles) 1243 check_scalar_Callback(hObject, eventdata, handles) 1244 check_vector_Callback(hObject, eventdata, handles) 1245 1283 1246 1284 1247 %----------------------------------------------------- … … 1463 1426 end 1464 1427 1465 % %store input file in personal file uvmat_perso.mat1466 % dir_perso=prefdir;1467 % profil_perso=fullfile(dir_perso,'uvmat_perso.mat');1468 % if exist(profil_perso,'file')1469 % save (profil_perso,'RootPath','SubDir','RootFile','NomType', 'ext','-append'); %store the root name for future opening of uvmat1470 % else1471 % save (profil_perso,'RootPath','SubDir','RootFile','NomType', 'ext'); %store the root name for future opening of uvmat1472 % end1473 1474 1475 1428 % -------------------------------------------------------------------- 1476 1429 function MenuFile_1_Callback(hObject, eventdata, handles)
Note: See TracChangeset
for help on using the changeset viewer.