source: issm/oecreview/Archive/17984-18295/ISSM-18251-18252.diff@ 18296

Last change on this file since 18296 was 18296, checked in by Mathieu Morlighem, 11 years ago

Added 17984-18295

File size: 845 bytes
  • ../trunk-jpl/src/m/plot/processdata.m

     
    1616        error('plotmodel error message: data provided is empty');
    1717end
    1818
     19%specials for struct
     20if 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);
     28end
     29
    1930%Process NaN if any (do not know before mask is applied)
    2031if exist(options,'nan')
    2132        data(find(isnan(data)))=getfieldvalue(options,'nan',0);
Note: See TracBrowser for help on using the repository browser.