comparison m-toolbox/test/gui/functions/gltpda_aoPlot.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 function gltpda_aoPlot(handles, ax)
2
3 % GLTPDA_AOPLOT plot analysis objects.
4 %
5 %
6 % M Hewitson 15-02-07
7 %
8 % $Id: gltpda_aoPlot.m,v 1.1 2007/03/12 13:00:31 hewitson Exp $
9 %
10
11
12 % get AO array
13 aos = getappdata(handles.main, 'aos');
14
15 % Get selected objects
16 selected = get(handles.aoList, 'Value');
17 if selected == 0
18 selected = 1;
19 end
20 as = aos.objs(selected);
21
22 % Go through and check objects
23 a = as(1);
24 d = a.data;
25 dinfo = whos('d');
26 cl = dinfo.class;
27 for j=2:length(as)
28 a = as(j);
29 d = a.data;
30 dinfo = whos('d');
31 if ~strcmp(dinfo.class, cl)
32 error('### objects should all be the same data type for plotting.');
33 end
34 end
35
36 % Plot
37 % Choose history axes
38 axes(ax);
39 plot(aos.objs(selected));
40 hold off;
41
42
43
44 % END