Bode plot of the following equation
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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.
0 comentarios
Respuestas (1)
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
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!