フィルターのクリア

Can I zoom an area in Bode magnitude diagram?

5 ビュー (過去 30 日間)
Muna Shehan
Muna Shehan 2017 年 7 月 18 日
コメント済み: Star Strider 2017 年 7 月 18 日
Hi everyone; I have a bode magnitude diagram but i need to zoom the first peak point on the same bode magnitude diagram. Thanks in advance

採用された回答

Star Strider
Star Strider 2017 年 7 月 18 日
The bode function has some restrictions. However you can use the GUI zoom, pan, data cursor, and other functions as you would in any other plot window. Click the magnifying glass with the + sign to zoom in, and the one with the - sign to zoom out. All the other plot window GUI functions work with bode as well.
  2 件のコメント
Muna Shehan
Muna Shehan 2017 年 7 月 18 日
Thanks for answering. I just want to be sure is there a possibility to zoom a certain area. Thanks a lot
Star Strider
Star Strider 2017 年 7 月 18 日
My pleasure.
If you want to customize the plots that bode produces, call bode with the first three output arguments, then plot them in a conventional subplot. You can then do anything you could do with any other plot object.
Example
% — This is for a SISO system —
[mag,phs,wout] = bode(sys);
Magnitude = squeeze(mag);
Phase = squeeze(phs);
figure(1)
subplot(2,1,1)
plot(wout,20*log10(Magnitude(1,:)))
title('Magnitude (dB)')
grid
subplot(2,1,2)
plot(wout,Phase(1,:))
title('Phase (°)')
grid

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

その他の回答 (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