Write a Matlab code to generate the following signal:
𝑚 (𝑡)=2𝑠𝑖𝑛𝑐 (2𝑡𝑇)+𝑠𝑖𝑛𝑐 (2𝑡𝑇+1)+ 𝑠𝑖𝑛𝑐 (2𝑡𝑇−1)

 Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 14 Jun. 2020
Bearbeitet: Ameer Hamza am 14 Jun. 2020

0 Stimmen

easy peasy:
t = -2:0.01:2;
T = 2;
y = 2*sinc(2*T*t) + sinc(2*T*t+1) + sinc(2*T*t-1);
plot(t, y)
sinc() function is defined in Signal Processing toolbox.
If you don't have the toolbox, then you can define it like this
function y = sinc(x)
y = sin(pi*x)./(pi*x);
y(x==0) = 1;
end

2 Kommentare

Mahmoud Tahoun
Mahmoud Tahoun am 14 Jun. 2020
Thanks alot
Ameer Hamza
Ameer Hamza am 14 Jun. 2020
I am glad to be of help!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Signal Processing Toolbox finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by