Mercurial > hg > ltpda
comparison m-toolbox/classes/@workspaceBrowser/cb_plot.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 % CB_PLOT plot the selected objects. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % | |
5 % CB_PLOT plot the selected objects. | |
6 % | |
7 % $Id: cb_plot.m,v 1.2 2009/07/29 07:02:45 hewitson Exp $ | |
8 % | |
9 function cb_plot(varargin) | |
10 | |
11 | |
12 wb = getappdata(0, 'WorkspaceBrowser'); | |
13 | |
14 objs = workspaceBrowser.getSelectedObjects(wb); | |
15 | |
16 aos = []; | |
17 for kk=1:numel(objs) | |
18 obj = objs{kk}; | |
19 if isa(obj, 'ao') | |
20 aos = [aos obj]; | |
21 end | |
22 end | |
23 | |
24 if ~isempty(aos) | |
25 iplot(aos); | |
26 else | |
27 disp('nothing to plot :( '); | |
28 end | |
29 | |
30 end | |
31 | |
32 | |
33 | |
34 |