フィルターのクリア

How to impulse response including unit step function

5 ビュー (過去 30 日間)
Muhammad Ali
Muhammad Ali 2020 年 10 月 30 日
コメント済み: Muhammad Ali 2020 年 10 月 30 日
I want to plot this impulse response on matlab over some time range:
This includes unit step function in it so I dont know how to plot this function on matlab. Can anyone help me in this.

回答 (2 件)

Peter O
Peter O 2020 年 10 月 30 日
The Heaviside step function is defined
Substitute a logical check on t for u(t). Should be extendable to a shifted step function (), too.
t = -0.001:0.001:3;
h = 3*exp(-2*t).*(t > 0) - exp(-t).*(t>0);
plot(t,h)

Ameer Hamza
Ameer Hamza 2020 年 10 月 30 日
Another approach is to use the impulse() from control system toolbox
s = tf('s');
sys = 3/(s+2)-1/(s+1); % laplace transform of impulse response
impulse(sys)

カテゴリ

Help Center および File ExchangePole and Zero Locations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by