How to bode plot exp(-0.1s) - 1?

10 ビュー (過去 30 日間)
HyoJoon Park
HyoJoon Park 2017 年 3 月 25 日
回答済み: Star Strider 2017 年 3 月 25 日
I wanted to reproduce this example on my own, but I couldn't figure out how to bode plot exp(-0.1s) - 1. I tried:
f = tf([exp(-0.1) -1], [1]);
bode(f)
Which gave me a different bode plot from the book.
Any idea?

採用された回答

Star Strider
Star Strider 2017 年 3 月 25 日
You have to set the transfer function variable to ‘continuous’ with the initial tf call, then you can use symbolic variables in the transfer function.
The Code
s = tf('s');
f = exp(-0.1*s);
[mag,phase,wout] = bode(f-1, {1E-1 1E+3});
figure(1)
subplot(2,1,1)
loglog(squeeze(wout), squeeze(mag))
set(gca, 'YLim',[1E-3 1E1])
grid
subplot(2,1,2)
semilogx(squeeze(wout), squeeze(phase))
This plot will reproduce the solid line in FIGURE 4.1.

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