How to correct resonance phase plot

5 visualizaciones (últimos 30 días)
Derek Cooper
Derek Cooper el 5 de Nov. de 2021
Comentada: Derek Cooper el 8 de Nov. de 2021
Hello,
I am trying to implement the resonance response at different damping ratios. I dont know why the phase plot looks like this
In litteratures, it is supposed to look like this, (Shifted),

Respuesta aceptada

Bjorn Gustavsson
Bjorn Gustavsson el 5 de Nov. de 2021
You could quick-fix this by plotting the phase-angle phi like:
plot(unwrap(2*phi)/2)
But you might have to check that you calculate the phase-angle correctly (right sign relative to the driving force and whatnot...)
HTH
  7 comentarios
Bjorn Gustavsson
Bjorn Gustavsson el 5 de Nov. de 2021
Chek the size of your alfa-variable. From the help of unwrap you see that it unwraps along the first (non-singleton) dimension, and you would most likely want the unwrapping along the second dimension:
plot(r,180/pi*unwrap(2*alfa,[],2)/2)
Derek Cooper
Derek Cooper el 8 de Nov. de 2021
Now it worked, thank you very much.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by