Changeset 19406
- Timestamp:
- 06/16/15 09:44:40 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/plotoptions.m
r16560 r19406 104 104 105 105 %get suplot(s) associated 106 string=strsplit (rawlist{i,1},'#');106 string=strsplit_strict(rawlist{i,1},'#'); 107 107 plotnums=string{end}; 108 108 field=string{1}; … … 127 127 %pound i-j 128 128 elseif ismember('-',plotnum) 129 nums=strsplit (plotnum,'-');129 nums=strsplit_strict(plotnum,'-'); 130 130 if length(nums)~=2, continue; end 131 if ~isnumeric(nums)131 if isempty(str2num(nums{1}))|isempty(str2num(nums{2})) 132 132 error(['the option #i-j is not set properly for ' field]); 133 133 end 134 for j= nums(1):nums(2),134 for j=str2num(nums{1}):str2num(nums{2}), 135 135 opt.list{j}=addfield(opt.list{j},field,rawlist{i,2}); 136 136 end
Note:
See TracChangeset
for help on using the changeset viewer.