Matlab plotting and graphing signals

12 次查看(过去 30 天)
Plot the signals: x(t) = 1 – u(t-2) – u(t-4) -u(t-6)

回答(1 个)

Walter Roberson
Walter Roberson 2020-11-4
sympref('heavisideatorigin', 1)
u = @heaviside
syms t
Now go ahead and construct your signal using u and fplot it.
  2 个评论
Walter Roberson
Walter Roberson 2020-11-4
https://www.mathworks.com/matlabcentral/answers/598198-how-to-plot-delta-dirac-and-unit-step-functions#answer_533940

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by