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

조회 수: 57 (최근 30일)
SimTec
SimTec 2022년 11월 22일
댓글: Patrick Ramsey 2025년 4월 26일
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

답변 (1개)

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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Frequency-Domain Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by