
chgunits
11-33
11chgunits
Purpose Convert the frequency units of an FRD model
Syntax sys = chgunits(sys,units)
Description sys = chgunits(sys,units) converts the units of the frequency points stored
in an FRD model,
sys to units,whereunits is either of the string s 'Hz' or
'rad/s'. This operation changes the assigned frequencies by applying the
appropriate (
2*pi) scaling factor, and the 'Units' property is updated.
If the
'Units' field already matches units,noconversionismade.
Example w = logspace(1,2,2);
sys = rss(3,1,1);
sys = frd(sys,w)
From input 'input 1' to:
Frequency(rad/s) output 1
---------------- --------
10 0.293773+0.001033i
100 0.294404+0.000109i
Continuous-time frequency response data.
sys = chgunits(sys,'Hz')
sys.freq
ans =
1.5915
15.9155
See Also frd Create or convert to an FRD model
get Get the properties of an LTI model
set Set the properties of an LTI model
Commentaires sur ces manuels