Changeset 13731
- Timestamp:
 - 10/18/12 09:13:59 (13 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  issm/trunk-jpl/src/m/classes/pairoptions.m (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
issm/trunk-jpl/src/m/classes/pairoptions.m
r12383 r13731 175 175 176 176 %some argument checking: 177 if nargin~=2 & nargin~=3,177 if nargin~=2 && nargin~=3, 178 178 help getfieldvalue 179 179 error('getfieldvalue error message: bad usage'); … … 185 185 186 186 %Recover option 187 for i=1:size(obj.list,1), 188 if strcmpi(obj.list{i,1},field) 189 value=obj.list{i,2}; 190 return 191 end 187 pos=find(strcmpi(obj.list(:,1),field)); 188 if ~isempty(pos), 189 value=obj.list{pos(1),2}; %ignore extra entry 190 return; 192 191 end 193 192  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)