Changeset 206 for trunk/src/series.m
- Timestamp:
- Feb 27, 2011, 10:40:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r205 r206 248 248 'Pick a file',oldfile); 249 249 fileinput=[PathName FileName];%complete file name 250 testblank=findstr(fileinput,' ');%look for blanks251 if ~isempty(testblank)252 errordlg('forbidden input file name: contain blanks')253 return254 end250 %testblank=findstr(fileinput,' ');%look for blanks 251 % if ~isempty(testblank) 252 % errordlg('forbidden input file name: contain blanks') 253 % return 254 % end 255 255 sizf=size(fileinput); 256 256 if (~ischar(fileinput)|~isequal(sizf(1),1)),return;end … … 327 327 RootFileCell=get(handles.RootFile,'String'); 328 328 oldfile=''; %default 329 if isempty(RootPathCell)| isequal(RootPathCell,{''})%loads the previously stored file name and set it as default in the file_input box329 if isempty(RootPathCell)||isequal(RootPathCell,{''})%loads the previously stored file name and set it as default in the file_input box 330 330 dir_perso=prefdir; 331 331 profil_perso=fullfile(dir_perso,'uvmat_perso.mat'); … … 352 352 'Pick a file',oldfile); 353 353 fileinput=[PathName FileName];%complete file name 354 testblank=findstr(fileinput,' ');%look for blanks355 if ~isempty(testblank)356 errordlg('forbidden input file name: contain blanks')357 return358 end354 % testblank=findstr(fileinput,' ');%look for blanks 355 % if ~isempty(testblank) 356 % errordlg('forbidden input file name: contain blanks') 357 % return 358 % end 359 359 sizf=size(fileinput); 360 360 if (~ischar(fileinput)|~isequal(sizf(1),1)),return;end … … 362 362 SeriesData=[];%dfault 363 363 if isequal(ext,'.xml') 364 errordlg('input file type not implemented')%A Faire: ouvrir le fichier pour naviguer364 msgbox_uvmat('ERROR','input file type not implemented')%A Faire: ouvrir le fichier pour naviguer 365 365 elseif isequal(ext,'.xls') 366 errordlg('input file type not implemented')%A Faire: ouvrir le fichier pour naviguer366 msgbox_uvmat('ERROR','input file type not implemented')%A Faire: ouvrir le fichier pour naviguer 367 367 else 368 368 update_file(hObject, eventdata, handles,fileinput,1) … … 1622 1622 series_fct{ilist-nb_builtin_ACTION}=fullfile(list_path{ilist},[menu_str{ilist} '.m']); 1623 1623 end 1624 if nb_builtin_ACTION+1 >=length(menu_str)-11625 if exist(profil_perso,'file')&& nb_builtin_ACTION+1>=length(menu_str)-11626 save(profil_perso,'series_fct','-append')1627 else1628 txt=ver('MATLAB');1629 Release=txt.Release;1630 relnumb=str2num(Release(3:4));1631 if relnumb >= 141632 save(profil_perso,'series_fct','-V6')1633 else1634 save(profil_perso, 'series_fct')1635 end1636 end1624 if nb_builtin_ACTION+1<=length(menu_str)-1 1625 if exist(profil_perso,'file')% && nb_builtin_ACTION+1>=length(menu_str)-1 1626 save(profil_perso,'series_fct','-append') 1627 else 1628 txt=ver('MATLAB'); 1629 Release=txt.Release; 1630 relnumb=str2num(Release(3:4)); 1631 if relnumb >= 14%recent relaese of Matlab 1632 save(profil_perso,'series_fct','-V6') 1633 else 1634 save(profil_perso, 'series_fct') 1635 end 1636 end 1637 1637 end 1638 1638 end
Note: See TracChangeset
for help on using the changeset viewer.