diff m-toolbox/test/gui/functions/gltpda_plotHist.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/test/gui/functions/gltpda_plotHist.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,23 @@
+function gltpda_plotHist(handles, ax)
+
+% GLTPDA_PLOTHIST plots the history of the last selected AO in the gui
+% axes.
+% 
+% M Hewitson 15-02-07
+% 
+% $Id: gltpda_plotHist.m,v 1.1 2007/03/12 13:00:31 hewitson Exp $
+% 
+
+% get AO array
+aos = getappdata(handles.main, 'aos');
+
+% Get selected objects
+selected = get(handles.aoList, 'Value');
+
+% Choose history axes
+axes(ax);
+a = aos.objs(selected(end));
+plot(a.hist);
+
+
+% END
\ No newline at end of file