How to plot a phase only Bode plot?

조회 수: 74 (최근 30일)
Samuel O'Neill
Samuel O'Neill 2020년 4월 20일
답변: Samuel O'Neill 2020년 4월 20일
I'm looking for a command that will plot a phase Bode plot of a transfer function, but not a magnitude plot. I'm doing this to compare my own plot (from data instead of a transfer function) with a plot made from a TF.
I've already used
bodemag(tf)
to plot a magnitude-only Bode plot, but I can't find anything similar for phase. I've tried several variations of this command and looked around the bode() documentation but I can't find anything.
Does anyone know if there's a command, and if not how do I plot a phase-only plot so that it can be compared?
  댓글 수: 2
Tommy
Tommy 2020년 4월 20일
How about
h = bodeplot(tf);
setoptions(h,'MagVisible','off');
Samuel O'Neill
Samuel O'Neill 2020년 4월 20일
@Tommy thats done it, thankyou!

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

채택된 답변

Samuel O'Neill
Samuel O'Neill 2020년 4월 20일
Reposting Tommy's comment here as its the solution for any future users:
h = bodeplot(tf);
setoptions(h,'MagVisible','off');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Control System Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by