Info
此问题已关闭。 请重新打开它进行编辑或回答。
Just wondering how to I plot these functions into Matlab?
1 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/193767/image.png)
Just need help plotting these two functions into Matlab
0 个评论
回答(1 个)
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))
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!