Mercurial > hg > ltpda
view m-toolbox/test/gui/functions/gltpda_aoPlot.m @ 52:daf4eab1a51e database-connection-manager tip
Fix. Default password should be [] not an empty string
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 07 Dec 2011 17:29:47 +0100 |
parents | f0afece42f48 |
children |
line wrap: on
line source
function gltpda_aoPlot(handles, ax) % GLTPDA_AOPLOT plot analysis objects. % % % M Hewitson 15-02-07 % % $Id: gltpda_aoPlot.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'); if selected == 0 selected = 1; end as = aos.objs(selected); % Go through and check objects a = as(1); d = a.data; dinfo = whos('d'); cl = dinfo.class; for j=2:length(as) a = as(j); d = a.data; dinfo = whos('d'); if ~strcmp(dinfo.class, cl) error('### objects should all be the same data type for plotting.'); end end % Plot % Choose history axes axes(ax); plot(aos.objs(selected)); hold off; % END