# 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

1 visualizzazione (ultimi 30 giorni)
Rajeev Kumar il 11 Ott 2022
Modificato: Matt J il 11 Ott 2022
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 CommentiMostra 1 commento meno recenteNascondi 1 commento meno recente
Rajeev Kumar il 11 Ott 2022
Yes... stored Phase in seperate array
Matt J il 11 Ott 2022
Modificato: Matt J il 11 Ott 2022
Then I think I have given you a valid answer below.

Accedi per commentare.

### Risposte (1)

Matt J il 11 Ott 2022
Modificato: Matt J il 11 Ott 2022
F=fft( reshape(input,1024,[]) ,[],1);
amplitude=abs(F);
phase=angle(F);
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Categorie

Scopri di più su Fourier Analysis and Filtering in Help Center e File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by