Changeset 19406


Ignore:
Timestamp:
06/16/15 09:44:40 (10 years ago)
Author:
Mathieu Morlighem
Message:

BUG: updated plotoptions bug for #i-j

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/plotoptions.m

    r16560 r19406  
    104104
    105105                                         %get suplot(s) associated
    106                                          string=strsplit(rawlist{i,1},'#');
     106                                         string=strsplit_strict(rawlist{i,1},'#');
    107107                                         plotnums=string{end};
    108108                                         field=string{1};
     
    127127                                                         %pound i-j
    128128                                                 elseif ismember('-',plotnum)
    129                                                          nums=strsplit(plotnum,'-');
     129                                                         nums=strsplit_strict(plotnum,'-');
    130130                                                         if length(nums)~=2, continue; end
    131                                                          if ~isnumeric(nums)
     131                                                         if isempty(str2num(nums{1}))|isempty(str2num(nums{2}))
    132132                                                                 error(['the option #i-j is not set properly for ' field]);
    133133                                                         end
    134                                                          for j=nums(1):nums(2),
     134                                                         for j=str2num(nums{1}):str2num(nums{2}),
    135135                                                                 opt.list{j}=addfield(opt.list{j},field,rawlist{i,2});
    136136                                                         end
Note: See TracChangeset for help on using the changeset viewer.