Bode Plot options to graph

10 ビュー (過去 30 日間)
rockstar49
rockstar49 2022 年 10 月 12 日
回答済み: Paul 2022 年 10 月 12 日
Id like to have absolute gain as it generates the plot instead of having to do it manually. I was able to change frequency from rad to hz. not sure about the db to absolute. Thank you
  1 件のコメント
rockstar49
rockstar49 2022 年 10 月 12 日
Hi,
Is it something that can be done like this?
h = gcr
setoptions(h,'FreqUnits','Hz')

サインインしてコメントする。

回答 (2 件)

Chunru
Chunru 2022 年 10 月 12 日
H = tf([1 0.1 7.5],[1 0.12 9 0 0]);
[mag,phase,wout] = bode(H);
subplot(211); plot(wout, squeeze(mag(1,1,:)))
subplot(212); plot(wout, squeeze(phase(1,1,:)))
figure;
bode(H)
  6 件のコメント
rockstar49
rockstar49 2022 年 10 月 12 日
It is a property setting on the figure, I can easily change it manually. I did the same thing for the frequency from rad to hz. im sure there is a way to do the same from db to absolute gain

サインインしてコメントする。


Paul
Paul 2022 年 10 月 12 日
Can be done if using bodeplot instead of bode
H = tf([1 0.1 7.5],[1 0.12 9 0 0]);
h = bodeplot(H);
setoptions(h,'MagUnits','abs','FreqUnits','Hz')

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by