Change marker width in bode plot

9 ビュー (過去 30 日間)
sarita jain
sarita jain 2017 年 9 月 6 日
コメント済み: Star Strider 2017 年 9 月 6 日
By default, the marker width of the bode plot is very large. There is an option to change the line width but no option to change the marker width? How can I change it ?

採用された回答

Star Strider
Star Strider 2017 年 9 月 6 日
The bode function doesn’t accept many options with respect to its plots. The easiest way to do what you want is to request at least the first three outputs of the bode function, and then plot them using subplot and plot. The plots are the same as any other plot object:
[mag,phase,wout] = bode(sys);
subplot(2,1,1)
plot(wout, mag)
subplot*2,1,2)
plot(wout, phase)
Use ‘20*log10(mag)’ to plot the magnitude in decibels, and semilogx instead of plot to make the plot look like those bode produces on its own:
[mag,phase,wout] = bode(sys);
subplot(2,1,1)
semilogx(wout, 20*log10(mag))
subplot*2,1,2)
semilogx(wout, phase)
  6 件のコメント
sarita jain
sarita jain 2017 年 9 月 6 日
Thanks a lot. I wanted to do this only.
Star Strider
Star Strider 2017 年 9 月 6 日
As always, my pleasure.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePlot Customization についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by