Changeset 2468
- Timestamp:
- 10/21/09 15:55:09 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/@plotoptions/buildlist.m
r2439 r2468 34 34 %get suplot(s) associated 35 35 string=strsplit(rawoptions.list{i,1},'#'); 36 plotnum =string{end};36 plotnums=string{end}; 37 37 field=string{1}; 38 38 39 %#all 40 if strcmpi(plotnum,'all'); 41 for j=1:numberofplots, 42 plotoptions.list{j}=addfield(plotoptions.list{j},field,rawoptions.list{i,2}); 39 %divide plotnums if there is a comma ',' 40 plotnums=strsplit_strict(plotnums,','); 41 42 %loop over plotnums 43 for k=1:length(plotnums); 44 plotnum=plotnums{k}; 45 46 %Empty 47 if isempty(plotnum), 48 continue; 49 50 %#all 51 elseif strcmpi(plotnum,'all'); 52 for j=1:numberofplots, 53 plotoptions.list{j}=addfield(plotoptions.list{j},field,rawoptions.list{i,2}); 54 end 55 56 %#i-j 57 elseif ismember('-',plotnum) 58 nums=strsplit(plotnum,'-'); 59 if length(nums)~=2, continue; end 60 for j=nums(1):nums(2), 61 plotoptions.list{j}=addfield(plotoptions.list{j},field,rawoptions.list{i,2}); 62 end 63 64 %#i 65 else 66 %assign to subplot 67 plotoptions.list{str2num(plotnum)}=addfield(plotoptions.list{str2num(plotnum)},field,rawoptions.list{i,2}); 43 68 end 44 %#i45 else46 %assign to subplot47 plotoptions.list{str2num(plotnum)}=addfield(plotoptions.list{str2num(plotnum)},field,rawoptions.list{i,2});48 69 end 49 70
Note:
See TracChangeset
for help on using the changeset viewer.