Mercurial > hg > ltpda
comparison m-toolbox/classes/@minfo/addChildren.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 % ADDCHILDREN Add children to this minfo. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: Add a child info object | |
5 % | |
6 % CALL: obj.addChildren(mi1, mi2); | |
7 % | |
8 % INPUTS: obj - must be a single minfo object. | |
9 % | |
10 % VERSION: $Id: addChildren.m,v 1.2 2011/02/18 16:48:53 ingo Exp $ | |
11 % | |
12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
13 | |
14 function varargout = addChildren(varargin) | |
15 | |
16 obj = varargin{1}; | |
17 infos = [varargin{2:end}]; | |
18 | |
19 obj.children = [obj.children infos]; | |
20 | |
21 varargout{1} = obj; | |
22 end | |
23 |