comparison m-toolbox/classes/@pz/setF.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 % SETF Set the property 'f'
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: SETF Set the property 'f' and computes 'ri'
5 %
6 % CALL: obj = obj.setF(1);
7 % obj = setF(obj, 1);
8 %
9 % INPUTS: obj - is a pz object
10 %
11 % VERSION: $Id: setF.m,v 1.2 2011/02/18 16:48:54 ingo Exp $
12 %
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14
15 function ii = setF(ii, val)
16
17 %%% decide whether we modify the pz-object, or create a new one.
18 ii = copy(ii, nargout);
19
20 %%% set 'f'
21 ii.f = val;
22 %%% Then compute and set ri
23 ii.ri = pz.fq2ri(ii.f, ii.q);
24 end