i need help plotting this function

I(s)=1000*(e^-t)*sin(t) - 1000*u(t-2)*(e^-(t-2))*sin(t-2)
Thanks!

2 件のコメント

KSSV
KSSV 2019 年 4 月 29 日
What is u? what are ranges of t? More information needed....
David Wilson
David Wilson 2019 年 4 月 30 日
I'm assuming your u(t) is a step function (Heaviside) input, (as this looks like a control problem), so
%I(s)=1000*(e^-t)*sin(t) - 1000*u(t-2)*(e^-(t-2))*sin(t-2)
u = @(t) (sign(t)+1)/2; % Heaviside step function
I = @(t) 1000*exp(-t).*sin(t) - 1000*u(t-2).*exp(-(t-2)).*sin(t-2)
t = linspace(-5,10)';
plot(t, I(t-2))
gives something like:
tmp.png

回答 (0 件)

この質問は閉じられています。

タグ

質問済み:

2019 年 4 月 29 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by