source:
issm/oecreview/Archive/17984-18295/ISSM-18251-18252.diff@
18296
Last change on this file since 18296 was 18296, checked in by , 11 years ago | |
---|---|
File size: 845 bytes |
-
../trunk-jpl/src/m/plot/processdata.m
16 16 error('plotmodel error message: data provided is empty'); 17 17 end 18 18 19 %specials for struct 20 if isstruct(data), 21 disp('data provided is a struct, please enter the number of the field you would like to display:'); 22 F=fields(data); 23 for i=1:numel(F), 24 disp([' ' num2str(i) ': ' F{i} ]); 25 end 26 choice=input(['please enter the field number? (between 1 and ' num2str(numel(F)) ') ']); 27 [data datatype]=processdata(md,data.(F{choice}),options); 28 end 29 19 30 %Process NaN if any (do not know before mask is applied) 20 31 if exist(options,'nan') 21 32 data(find(isnan(data)))=getfieldvalue(options,'nan',0);
Note:
See TracBrowser
for help on using the repository browser.