Bode Diagram Plot specification (magnitude)
5 views (last 30 days)
Show older comments
Francesco Porretta
on 4 Feb 2021
Commented: Star Strider
on 4 Feb 2021
Good Morning guys,
I was wondering if it is possible to plot the bode diagram of a transfer function neglecting some area in the magnitude.
I'm going to better explain myself: I want to show in the plot that the tranfer function in magnitude is higher than 40 decibel in the range frequency < 1 rad/s (so I want to, let's say, colour all the zone in the graph that is lower than 40 dB up to 1 rad/s).
In other words, I want to obtain something like in the following figure (the grey parts).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/509312/image.jpeg)
How can I do?
Thanks for your help!
0 Comments
Accepted Answer
Star Strider
on 4 Feb 2021
That would likely be next to impossible using the bode function itself. The best option is to get the outputs from bode as described in Obtain Magnitude and Phase Data and the use the regular plotting routines to do the plot.
It may be necessary to use the squeeze function on some of the bode outputs to create the necessary vectors for the plot.
2 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!