필터 지우기
필터 지우기

I want to compute FFT of each segments from a 102400 length signal, where I consider the length of segment is 1024. Than store the amplitude and freq n separate array

조회 수: 3 (최근 30일)
I want to compute FFT of each segments from a 102400 length signal, where I consider the length of segment is 1024. Than store the amplitude and freq n separate array?
Data file is attached and store in v1.
I tried the below code :
requiredArray = [];
meanRequiredArray = [];
sum = 0;
count = 1;
for k = v1
requiredArray = [requiredArray, k];
disp(requiredArray);
if numel(requiredArray) == 3
meanRequiredArray = [meanRequiredArray, (abs(fft(requiredArray)))];
requiredArray = [];
end
disp(numel(requiredArray));
end
SA= meanRequiredArray';
  댓글 수: 3
Matt J
Matt J 2022년 10월 11일
편집: Matt J 2022년 10월 11일
Then I think I have given you a valid answer below.

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

답변 (1개)

Matt J
Matt J 2022년 10월 11일
편집: Matt J 2022년 10월 11일
F=fft( reshape(input,1024,[]) ,[],1);
amplitude=abs(F);
phase=angle(F);

카테고리

Help CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by