Fourier transform for a sequence of values

조회 수: 4 (최근 30일)
Iftekharuddin Syed
Iftekharuddin Syed 2020년 12월 20일
댓글: the cyclist 2020년 12월 20일
There is a signal x(n) = [5 3 -4 2 8]. How to find the Fourier Transform of the signal x(n).

답변 (1개)

the cyclist
the cyclist 2020년 12월 20일
  댓글 수: 3
Iftekharuddin Syed
Iftekharuddin Syed 2020년 12월 20일
I mean how to find X(k) for k=1.
the cyclist
the cyclist 2020년 12월 20일
That is a very straightforward formula to code into MATLAB. For example, the exponential bit could be written
exp(-i .* 2*pi * k .* n ./ N)
It is usually pretty straightforward to translate simple math formulas into MATLAB.
But this is not the best place to learn all the MATLAB you need to know in order to write this code. I recommend watching the MATLAB Onramp video.

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

카테고리

Help CenterFile Exchange에서 Discrete Fourier and Cosine Transforms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by