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

 採用された回答

Ameer Hamza
Ameer Hamza 2020 年 6 月 14 日
編集済み: Ameer Hamza 2020 年 6 月 14 日

0 投票

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 件のコメント

Mahmoud Tahoun
Mahmoud Tahoun 2020 年 6 月 14 日
Thanks alot
Ameer Hamza
Ameer Hamza 2020 年 6 月 14 日
I am glad to be of help!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSignal Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by