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