How to plot u(t) - u(t-2) on matlab

Réponses (2)

If ‘u(t)’ is the unit step (heaviside) function —
syms t
u(t) = heaviside(t);
figure
fplot(u(t)-u(t-2), [0 5])
grid
xlabel('t')
ylabel('Amplitude')
axis('padded')
.

Question posée :

le 17 Déc 2022

Community Treasure Hunt

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

Start Hunting!

Translated by