comparison m-toolbox/classes/@workspaceBrowser/cb_plothistory.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_PLOTHISTORY display the history of the selected objects.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 %
5 % CB_PLOTHISTORY display the history of the selected objects.
6 %
7 % $Id: cb_plothistory.m,v 1.1 2009/07/29 07:02:45 hewitson Exp $
8 %
9 function cb_plothistory(varargin)
10
11
12 wb = getappdata(0, 'WorkspaceBrowser');
13
14 objs = workspaceBrowser.getSelectedObjects(wb);
15
16 for kk=1:numel(objs)
17 obj = objs{kk};
18 if isa(obj, 'ltpda_uoh')
19 try
20 dotview(obj.hist, plist('filename', sprintf('temp%d.pdf', kk)));
21 catch
22 plot(obj.hist);
23 end
24 else
25 disp(['can''t plot the history of a ' class(obj)]);
26 end
27 end
28 end
29
30
31
32