comparison m-toolbox/classes/@LTPDAworkbench/objs2pipeline.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 % OBJS2PIPELINE builds new pipelines in the given workbench from the
2 % history of the input objects.
3 %
4 % CALL: objs2pipeline(wb, objs)
5 %
6 % M Hewitson 12-11-10
7 %
8 % $Id: objs2pipeline.m,v 1.2 2010/08/06 19:10:49 ingo Exp $
9 %
10 function objs2pipeline(wb, objs)
11
12 % loop over input objects
13 for oo=1:numel(objs)
14 % get the history object
15 hist = objs(oo).hist;
16 % get a list of commands
17 cmds = hist2m(hist);
18 % and discard the first and reorder
19 cmds = cmds(end:-1:2);
20 % create new diagram
21 wb.cmds2pipeline(objs(oo).name, cmds);
22 end % end loop over objects
23
24 end