Hi, im new, how to represent this signal

1 view (last 30 days)
Ruben Abreu
Ruben Abreu on 12 Dec 2021
Answered: Chunru on 13 Dec 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)

Answers (1)

Chunru
Chunru on 13 Dec 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!