Effacer les filtres
Effacer les filtres

Hi, im new, how to represent this signal

1 vue (au cours des 30 derniers jours)
Ruben Abreu
Ruben Abreu le 12 Déc 2021
Réponse apportée : Chunru le 13 Déc 2021
Whats the code needed to create and represent the following signals using n and t suitable for each sign
1 - o(t)=(t+2)[u(t+2)-u(t)]+(-t+2)[u(t)-u(t-2)]
2 - l(t)=-3u(t+1)+u(t-1)+u(t-2)+u(t-3)

Réponses (1)

Chunru
Chunru le 13 Déc 2021
% For matlab symbolic maths, use heaviside for step function u(t)
% l(t)=-3u(t+1)+u(t-1)+u(t-2)+u(t-3)
syms t l
l(t) = -3*heaviside(t+1) + heaviside(t-1) + heaviside(t-2) + heaviside(t-3)
l(t) = 
fplot(l, [-5, 5])

Community Treasure Hunt

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

Start Hunting!

Translated by