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

68 visualizaciones (últimos 30 días)
SimTec
SimTec el 22 de Nov. de 2022
Comentada: Patrick Ramsey el 26 de Abr. de 2025
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

Respuestas (1)

Robert U
Robert U el 22 de Nov. de 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
  3 comentarios
Ben
Ben el 25 de Mzo. de 2024
So the answer is simple... you add them in a cell like so:
opts.YLim = {[-20 10],[-50 150]}
Patrick Ramsey
Patrick Ramsey el 26 de Abr. de 2025
Ben's answer is correct except mine needed a ; not , separator.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by