Changeset 672 for trunk/src/series.m
- Timestamp:
- Aug 6, 2013, 3:47:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r669 r672 243 243 %% introduce the input file name(s) if defined from input Param 244 244 if isfield(Param,'FileName') 245 InputTable={'','','','',''}; % refresh the file input table 245 %InputTable={'','','','',''}; % refresh the file input table 246 InputTable={} 246 247 set(handles.InputTable,'Data',InputTable) 247 248 if isfield(Param,'FileName_1') … … 584 585 SeriesData=get(handles.series,'UserData'); 585 586 if strcmp(iview,'append') % display the input data as a new line in the table 586 iview=size(InputTable,1) ;% the next line in InputTable becomes the current line587 InputTable(iview+1,:)={'','','','',''};587 iview=size(InputTable,1)+1;% the next line in InputTable becomes the current line 588 %InputTable(iview+1,:)={'','','','',''}; 588 589 InputTable(iview,:)=[{RootPath},{SubDir},{RootFile},{NomType},{FileExt}]; 589 590 elseif strcmp(iview,'one') % refresh the list of input file series 590 591 iview=1; %the first line in InputTable becomes the current line 591 InputTable=[{'','','','',''};{'','','','',''}]; 592 InputTable={'','','','',''}; 593 %InputTable=[{'','','','',''};{'','','','',''}]; 592 594 InputTable(iview,:)=[{RootPath},{SubDir},{RootFile},{NomType},{FileExt}]; 593 595 set(handles.TimeTable,'Data',[{[]},{[]},{[]},{[]}]) … … 607 609 SeriesData.Time={}; 608 610 end 609 nbview=size(InputTable,1)-1;% rmq: the last line is set blank to allow manual addition of a line 611 %nbview=size(InputTable,1)-1;% rmq: the last line is set blank to allow manual addition of a line 612 nbview=size(InputTable,1); 610 613 set(handles.ListView,'String',mat2cell((1:nbview)',ones(nbview,1))) 611 614 set(handles.ListView,'Value',iview) … … 2156 2159 set(handles.OutputDirExt,'String',ParamOut.OutputDirExt) 2157 2160 OutputDirVisible='on'; 2158 SubDir=InputTable(1:end -1,2); %set of subdirectories sorted in alphabetical order2161 SubDir=InputTable(1:end,2); %set of subdirectories sorted in alphabetical order 2159 2162 SubDirOut=SubDir{1}; 2160 2163 if numel(SubDir)>1 … … 2485 2488 nbview=size(InputTable,1); 2486 2489 % MaskTable=cell(nbview,1); 2490 MaskTable=cell(nbview,1);%default 2491 ListMask=cell(nbview,1);%default 2487 2492 for iview=1:nbview 2493 ListMask{iview,1}=num2str(iview); 2488 2494 RootPath=InputTable{iview,1}; 2489 2495 if ~isempty(RootPath) … … 2500 2506 end 2501 2507 end 2502 nbview=size(MaskTable,1);2508 %nbview=size(MaskTable,1); 2503 2509 set(handles.MaskTable,'Data',MaskTable) 2504 2510 % set(handles.MaskTable,'ColumnFormat',{MaskTable'}) … … 2507 2513 set(handles.ListMask,'Visible','on') 2508 2514 set(handles.ListMask,'String',ListMask) 2509 set(handles.ListMask,'Value', numel(ListMask))2515 set(handles.ListMask,'Value',1) 2510 2516 else 2511 2517 set(handles.MaskTable,'Visible','off')
Note: See TracChangeset
for help on using the changeset viewer.