Filter löschen
Filter löschen

add ylim and xlim only in the magnitude response of bode plot?

72 Ansichten (letzte 30 Tage)
SimTec
SimTec am 22 Nov. 2022
Kommentiert: Ben am 25 Mär. 2024
hi guys,
How to add the ylim and xlim to the bode plot, magnitude only?
I havre added the ylim and xlim but the lines shows up in the phase plot and not the magnitude plot!
Cheers

Antworten (1)

Robert U
Robert U am 22 Nov. 2022
Hi SimTec,
If you are using bodeplot, you can have a look at bodeoptions()-command. There you can set the axis limits.
Kind regards,
Robert
  2 Kommentare
Ben
Ben am 25 Mär. 2024
I have this issue as well. XLim is fine, I want them to be the same for both the magnitude and phase plots, but the YLIM applies the same limits to the phase and magnitude plots! There does not seem to be in bodeoptions a way to distinguish between the two plots.
Ben
Ben am 25 Mär. 2024
So the answer is simple... you add them in a cell like so:
opts.YLim = {[-20 10],[-50 150]}

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Get Started with Control System Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by