comparison m-toolbox/classes/@param/setDesc.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 % SETDESC Set the property 'desc'.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: Set the property 'desc'.
5 %
6 % CALL: obj.setDesc('new description');
7 % obj = setDesc(obj, 'new description');
8 %
9 % VERSION: $Id: setDesc.m,v 1.4 2011/02/18 16:48:53 ingo Exp $
10 %
11 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12
13 function varargout = setDesc(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}.desc = varargin{2};
19 varargout{1} = varargin{1};
20
21 end
22