How to correct resonance phase plot
11 次查看(过去 30 天)
显示 更早的评论
Hello,
I am trying to implement the resonance response at different damping ratios. I dont know why the phase plot looks like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/790404/image.png)
In litteratures, it is supposed to look like this, (Shifted),
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/790409/image.png)
0 个评论
采纳的回答
Bjorn Gustavsson
2021-11-5
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 个评论
Bjorn Gustavsson
2021-11-5
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)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!