Changeset 839 for trunk/src/series
- Timestamp:
- Dec 9, 2014, 12:25:23 AM (10 years ago)
- Location:
- trunk/src/series
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/extract_rdvision.m
r833 r839 80 80 InputTable=cell(numel(ListDir),5); 81 81 InputTable(:,2)=ListDir'; 82 isel=0; 82 83 for ilist=1:numel(ListDir) 83 InputTable{ilist,1}=RootPath;84 84 ListStructSub=dir(fullfile(RootPath,ListDir{ilist})); 85 85 ListCellSub=struct2cell(ListStructSub);% transform dir struct to a cell arrray 86 86 detect_seq=regexp(ListCellSub(1,:),'.seq$'); 87 87 seq_index=find(~cellfun('isempty',detect_seq),1); 88 if isempty(seq_index) 89 msgbox_uvmat('ERROR',['not seq file in ' ListDir{ilist} ': please check the input folders']) 90 else 88 if ~isempty(seq_index) 89 % msgbox_uvmat('ERROR',['not seq file in ' ListDir{ilist} ': please check the input folders']) 90 % else 91 isel=isel+1; 92 InputTable{isel,1}=RootPath; 91 93 RootFile=regexprep(ListCellSub{1,seq_index},'.seq$',''); 92 InputTable{i list,3}=RootFile;93 end 94 InputTable{i list,4}='*';95 InputTable{i list,5}='.seq';94 InputTable{isel,3}=RootFile; 95 end 96 InputTable{isel,4}='*'; 97 InputTable{isel,5}='.seq'; 96 98 end 97 99 hseries=findobj(allchild(0),'Tag','series');% find the parent GUI 'series'
Note: See TracChangeset
for help on using the changeset viewer.