Mercurial > hg > ltpda
comparison m-toolbox/classes/@LTPDAworkbench/newPipeline.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 % NEWPIPELINE creates a new pipeline document in the current workbench. | |
2 % | |
3 % CALL: wb.newPipeline(name) | |
4 % wb.newPipeline(objs) | |
5 % | |
6 % M Hewitson 11-10-08 | |
7 % | |
8 % $Id: newPipeline.m,v 1.2 2010/08/06 19:10:49 ingo Exp $ | |
9 % | |
10 function newPipeline(wb, varargin) | |
11 | |
12 if ischar(varargin{1}) | |
13 awtinvoke(wb.mp, 'createNewBlockDiagram', varargin{1}); | |
14 else | |
15 % Collect input variable names | |
16 in_names = cell(size(varargin)); | |
17 for ii = 1:nargin,in_names{ii} = inputname(ii);end | |
18 % Collect all AOs and plists | |
19 objs = utils.helper.collect_objects(varargin(:), 'ltpda_uoh', in_names); | |
20 % build pipeline on the active document | |
21 wb.objs2pipeline(objs); | |
22 end | |
23 | |
24 end |