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!

 채택된 답변

madhan ravi
madhan ravi 2020년 5월 22일
편집: madhan ravi 2020년 5월 22일

1 개 추천

y = (4000 * sinc(4000 * x)) .* (exp(j * 2 * pi *7000 * x)); % .*!!
Note: By default j is an imaginary number in MATLAB

댓글 수: 3

Moisa Tedy Gabriel
Moisa Tedy Gabriel 2020년 5월 22일
In fact i get this warning. Is it ok?
Warning: Imaginary parts of complex X and/or Y arguments ignored.
> In untitled (line 4)
Moisa Tedy Gabriel
Moisa Tedy Gabriel 2020년 5월 22일
ty

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by