Mercurial > hg > ltpda
comparison m-toolbox/classes/@param/setKey.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 % SETKEY Set the property 'key'. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: Set the property 'key'. | |
5 % | |
6 % CALL: obj.setKey('new key'); | |
7 % obj = setKey(obj, 'new key'); | |
8 % | |
9 % VERSION: $Id: setKey.m,v 1.8 2011/02/18 16:48:53 ingo Exp $ | |
10 % | |
11 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
12 | |
13 function varargout = setKey(varargin) | |
14 | |
15 %%% decide whether we modify the first plist, or create a new one. | |
16 varargin{1} = copy(varargin{1}, nargout); | |
17 | |
18 varargin{1}.key = varargin{2}; | |
19 varargout{1} = varargin{1}; | |
20 | |
21 end |