Rev | Line | |
---|
[18296] | 1 | Index: ../trunk-jpl/src/m/plot/processdata.m
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/m/plot/processdata.m (revision 18251)
|
---|
| 4 | +++ ../trunk-jpl/src/m/plot/processdata.m (revision 18252)
|
---|
| 5 | @@ -16,6 +16,17 @@
|
---|
| 6 | error('plotmodel error message: data provided is empty');
|
---|
| 7 | end
|
---|
| 8 |
|
---|
| 9 | +%specials for struct
|
---|
| 10 | +if isstruct(data),
|
---|
| 11 | + disp('data provided is a struct, please enter the number of the field you would like to display:');
|
---|
| 12 | + F=fields(data);
|
---|
| 13 | + for i=1:numel(F),
|
---|
| 14 | + disp([' ' num2str(i) ': ' F{i} ]);
|
---|
| 15 | + end
|
---|
| 16 | + choice=input(['please enter the field number? (between 1 and ' num2str(numel(F)) ') ']);
|
---|
| 17 | + [data datatype]=processdata(md,data.(F{choice}),options);
|
---|
| 18 | +end
|
---|
| 19 | +
|
---|
| 20 | %Process NaN if any (do not know before mask is applied)
|
---|
| 21 | if exist(options,'nan')
|
---|
| 22 | data(find(isnan(data)))=getfieldvalue(options,'nan',0);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.