view m-toolbox/classes/@workspaceBrowser/cb_plothistory.m @ 11:9174aadb93a5
database-connection-manager
Add LTPDA Repository utility functions into utils.repository
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05)
parents
f0afece42f48
children
line source
+ − % CB_PLOTHISTORY display the history of the selected objects.
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − %
+ − %
+ − % CB_PLOTHISTORY display the history of the selected objects.
+ − %
+ − % $Id: cb_plothistory.m,v 1.1 2009/07/29 07:02:45 hewitson Exp $
+ − %
+ − function cb_plothistory(varargin)
+ −
+ −
+ − wb = getappdata(0, 'WorkspaceBrowser');
+ −
+ − objs = workspaceBrowser.getSelectedObjects(wb);
+ −
+ − for kk=1:numel(objs)
+ − obj = objs{kk};
+ − if isa(obj, 'ltpda_uoh')
+ − try
+ − dotview(obj.hist, plist('filename', sprintf('temp%d.pdf', kk)));
+ − catch
+ − plot(obj.hist);
+ − end
+ − else
+ − disp(['can''t plot the history of a ' class(obj)]);
+ − end
+ − end
+ − end
+ −
+ −
+ −
+ −