Problem with Discrete Controller Design
3 views (last 30 days)
Show older comments
Dear Ladies and Gentlemen,
I am having an issue with designing a lead-lag controller. The bode plot of the continous controller is looking as expected but the discrete version of it is completely different and exhibits some weird spikes in the lower frequency section.
![Margin_Continuous.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/241984/Margin_Continuous.jpeg)
Margin of continous controller.
![Margin_Discrete_Continuous.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/241985/Margin_Discrete_Continuous.jpeg)
Bode plot of continous (blue) and discrete controller (orange).
The Sampling period is 81 ns which i use in the c2d function (with ZOH).
Is this some kind of numerical error or am I missing and/or misunderstanding something really important here?
Best regards,
Martin
0 Comments
Answers (2)
M
on 10 Oct 2019
It could actually be both.
It is indeed possible that the discretization with a given frequency brings problems such as oversampling, that you do not encounter with the continuous time model. It is difficult to say without further investigation.
0 Comments
See Also
Categories
Find more on Plot Customization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!