필터 지우기
필터 지우기

How can I get the DFT of this function?

조회 수: 2 (최근 30일)
Omar Esau Pacheco Saavedra
Omar Esau Pacheco Saavedra 2020년 4월 1일
답변: Nikhil Sonavane 2020년 4월 6일
How can I get the DFT of this function?
at 3, 7, 16, 128 points and save the results in vectors.
sorry if my question is silly, but i dont have schoolbecause covid 19
x(n) = u(n) − u(n − 4).

답변 (1개)

Nikhil Sonavane
Nikhil Sonavane 2020년 4월 6일
You may refer to the following code and make changes as per your requirements-
n = 512;
x=[1 1 1 1];
y = fft(x,n);
m = abs(y);
f = (0:length(y)-1)*100/length(y);
You may also refer to the documentation of fft.

카테고리

Help CenterFile Exchange에서 Performance and Memory에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by