how can I do this in mat lab
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Birdman
2020-4-6
syms u(t) x(t) h(t)
u(t)=piecewise(t>=0,1,0);
x(t)=cos(pi*t)*(u(t)-u(t-1));
h(t)=1.5*(u(t)-u(t-1.5));
%%plot
t=0:0.001:5;
plot(t,x(t),t,h(t));legend('x(t)','h(t)')
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!