Function sinc in matlab

조회 수: 9 (최근 30일)
Moisa Tedy Gabriel
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!

채택된 답변

madhan ravi
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
  댓글 수: 3
Moisa Tedy Gabriel
Moisa Tedy Gabriel 2020년 5월 22일
ty

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by