Absolute value of a transfer function in the frequency domain: how to calculate it.

19 次查看(过去 30 天)
I'd like to plot the Bode magnitude diagram of a function in the frequency domain (or better in the pulsation domain) but I'm not able to built this function that's express by the absolute values of other transfer functions .
To explain better the problem:
I have 2 transfer functions called P1(s)and P2(s) and declarated by the classical command 'tf'. Now I want to plot the Bode diagram of C that's is defined by the formula:
C(s)=(|P1|)/(1-|P2|), where the tranfer functions P1 and P2 are included in absolute value. Could anyone help me please? Thank you very much.

回答(1 个)

Arkadiy Turevskiy
Arkadiy Turevskiy 2013-10-8
Just one word of caution: the resulting C(s) will obviously be a real number, so the phase will be 0 or 180 deg depending on the sign. If that's what you want, you could do something like this:
s=tf('s');
P1=1/(s+1);
P2=5/(s^2+s+1);
[m1,p1,w1]=bode(P1);
[m2,p2]=bode(P2,w1);
C=squeeze(m1./(1-m2));
sys=frd(C,w1);
bode(sys)

类别

Help CenterFile Exchange 中查找有关 Get Started with Control System Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by