Function sinc in matlab
3 ビュー (過去 30 日間)
古いコメントを表示
Moisa Tedy Gabriel
2020 年 5 月 22 日
コメント済み: Moisa Tedy Gabriel
2020 年 5 月 22 日
I have this signal shifted by 7000 on the t axis
g(t) = 4000 * sinc(4000 * t) * e^(j * 2 * pi * 7000 * t)
I tried to replicate this in matlab to get the sinc graph, but does not work:
j = sqrt(-1);
x = linspace(-9000,9000);
y = (4000 * sinc(4000 * x)) * (exp(j * 2 * pi *7000 * x));
plot(x,y)
grid
Can anyone help me? Thanks!
0 件のコメント
採用された回答
madhan ravi
2020 年 5 月 22 日
編集済み: madhan ravi
2020 年 5 月 22 日
y = (4000 * sinc(4000 * x)) .* (exp(j * 2 * pi *7000 * x)); % .*!!
Note: By default j is an imaginary number in MATLAB
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!