Bode plot of the following equation

1 visualización (últimos 30 días)
Pradeep Kumar Chaudhary
Pradeep Kumar Chaudhary el 14 de Mzo. de 2020
Comentada: Star Strider el 15 de Mzo. de 2020
I am unable to get the bode plot of this equation:
s=tf('s');
U=(8+22/s+32*s)^0.2;
bode(U)
Error:
In the expression "M^K", the exponent K must be a scalar integer.

Respuestas (1)

Star Strider
Star Strider el 14 de Mzo. de 2020
Perhaps:
s=tf('s');
U=(8+22/s+32*s);
[m,p,w] = bode(U);
figure
subplot(2,1,1)
plot(w, 20*log10(squeeze(m).^0.2))
ylabel('|H(\omega)| (dB)')
grid
subplot(2,1,2)
plot(w,unwrap(squeeze(p)))
ylabel('\phi (\circ)')
grid
xlabel('\omega')
  2 comentarios
Pradeep Kumar Chaudhary
Pradeep Kumar Chaudhary el 15 de Mzo. de 2020
Thank u for your reply..but actually I wanted to know if there is any toolbox or method to plot such type of equations directly.
Star Strider
Star Strider el 15 de Mzo. de 2020
My pleasure.
Not to my knowledge.

Iniciar sesión para comentar.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by