Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Just wondering how to I plot these functions into Matlab?

1 回表示 (過去 30 日間)
John Marl
John Marl 2018 年 11 月 1 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Just need help plotting these two functions into Matlab

回答 (1 件)

Birdman
Birdman 2018 年 11 月 2 日
Try this:
syms x(t) h(t)
x(t)=piecewise(t>=-1 & t<=1,1,t<-1 | t>1,0)
h(t)=rectangularPulse((t-1)/4)
t=-5:0.01:5;
figure(1);plot(t,x(t))
figure(2);plot(t,h(t))

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by