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),

 Réponse acceptée

Bjorn Gustavsson
Bjorn Gustavsson le 5 Nov 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 commentaires

Hello,
That was unfortunately not correct. The equation that generates the phase angle is
for i = 1:length(xi)
alfa(i,:) = atand((2*xi(i).*r)./(1-r.^2));
end
where r is the frequency ratio and xi is the damping ratio.
Bjorn Gustavsson
Bjorn Gustavsson le 5 Nov 2021
Modifié(e) : Bjorn Gustavsson le 5 Nov 2021
@Derek Cooper: Transfer to work with angles in radians now, only when plotting you convert to degrees (sooner rather than later you will start to look at the mechanics of rotating bodies and whatnot, then it will become more of a nuisance to work with angles in degrees). If you change your code to:
for i = 1:length(xi)
alfa(i,:) = atan((2*xi(i).*r)./(1-r.^2));
end
plot(180/pi*unwrap(alfa*2)/2)
it should work.
Derek Cooper
Derek Cooper le 5 Nov 2021
@Bjorn Gustavsson Unfortunately, that doesnt work too.
Bjorn Gustavsson
Bjorn Gustavsson le 5 Nov 2021
Sure does - if you had manage to replace the obvious typo...
Derek Cooper
Derek Cooper le 5 Nov 2021
This is what I am getting with your suggestion
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 le 8 Nov 2021
Now it worked, thank you very much.

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by