How to plot u(t) - u(t-2) on matlab
Afficher commentaires plus anciens
Help please I need to plot u(t) - u(t-2)
Réponses (2)
syms t
u(t) = heaviside(t);
figure
fplot(u(t)-u(t-2), [0 5])
grid
xlabel('t')
ylabel('Amplitude')
axis('padded')
.
u = rand(20,1);
du = u(3:end) - u(1:end-2);
plot(du)
Catégories
En savoir plus sur Grid Lines, Tick Values, and Labels dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

