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