bode magnitude producing different plots for the same transfer function

2 ビュー (過去 30 日間)
jrz
jrz 2022 年 9 月 25 日
コメント済み: Star Strider 2022 年 9 月 25 日
I have transfer function and have manually extracted the magnitude and plotted it. When I used the bodemag function however, the plot looks very different. Im confused as to which one is correct and why they are coming out differently, as I havent applied any unit conversions. For my manual extraction, I have used the following and its produced the plot underneath.
[mag phase] = bode(tf);
Mag = transpose(squeeze(mag));
However, when I use the bodemag(tf) function, I get this:
I dont understand why these reuslts are so different or which one is correct and am looking for some claririfcation.

採用された回答

Star Strider
Star Strider 2022 年 9 月 25 日
The upper plot is plotted with a linear magnitude and the lower one is plotted with the magnitude in decibels.
  2 件のコメント
Paul
Paul 2022 年 9 月 25 日
Also, the upper plot x-axis is linear and the lower is log scale. And they don't cover the same max and min values.
Star Strider
Star Strider 2022 年 9 月 25 日
Noted. I didn’t catch the frequency axis difference. I was concentrating on the magnitude axis.

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

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