Changeset 188 for trunk/src/civ.m
- Timestamp:
- Feb 2, 2011, 1:22:05 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r183 r188 4625 4625 hwaitbar=uicontrol('Style','frame','Units','normalized', 'Position',BarPosition ,'BackgroundColor',[1 0 0],'tag','waitbar'); 4626 4626 end 4627 datnum=[];4627 % datnum=[]; 4628 4628 Tabchar={}; 4629 4629 nbfiles=numel(civ_files); 4630 4630 count=0; 4631 testrecent=0; 4631 4632 while count<nbfiles 4632 4633 count=0; 4634 datnum=zeros(1,nbfiles); 4633 4635 for ifile=1:nbfiles 4634 4636 detect=exist(civ_files{ifile},'file'); % check the existence of the file … … 4637 4639 option_str='not created'; 4638 4640 else 4639 datfile=dir(civ_files{ifile}); 4640 datnum(ifile)=datenum(datfile.date); 4641 datfile=dir(civ_files{ifile}) 4642 if isfield(datfile,'datenum') 4643 datnum(ifile)=datfile.datenum;%only available in recent matlab versions 4644 testrecent=1; 4645 end 4641 4646 filefound(ifile)={datfile.name}; 4642 4647 lastfield=''; … … 4669 4674 Tabchar{ifile,1}=[fullfile([subdir extdir],filename) ext '...' option_str]; 4670 4675 end 4671 if isempty(datnum) 4672 message='no civ result created yet'; 4676 datnum=datnum(find(datnum));%keep the non zero values corresponding to existing files 4677 if isempty(datnum) 4678 if testrecent 4679 message='no civ result created yet'; 4680 else 4681 message=''; 4682 end 4673 4683 else 4674 4684 datnum=datnum(find(datnum));%keep the non zero values corresponding to existing files … … 4708 4718 ind_dot=findstr(filename,'...'); 4709 4719 filename=filename(1:ind_dot-1); 4710 filename=fullfile(rootroot,filename) 4720 filename=fullfile(rootroot,filename); 4711 4721 if exist(filename,'file')%visualise the vel field if it exists 4712 4722 %[Field,VelTypeOut]=read_civxdata(filename);
Note: See TracChangeset
for help on using the changeset viewer.