Index: ../trunk-jpl/src/m/plot/processdata.m =================================================================== --- ../trunk-jpl/src/m/plot/processdata.m (revision 18251) +++ ../trunk-jpl/src/m/plot/processdata.m (revision 18252) @@ -16,6 +16,17 @@ error('plotmodel error message: data provided is empty'); end +%specials for struct +if isstruct(data), + disp('data provided is a struct, please enter the number of the field you would like to display:'); + F=fields(data); + for i=1:numel(F), + disp([' ' num2str(i) ': ' F{i} ]); + end + choice=input(['please enter the field number? (between 1 and ' num2str(numel(F)) ') ']); + [data datatype]=processdata(md,data.(F{choice}),options); +end + %Process NaN if any (do not know before mask is applied) if exist(options,'nan') data(find(isnan(data)))=getfieldvalue(options,'nan',0);