Energy at Frequency how to find out

1 visualización (últimos 30 días)
Aniket Manjare
Aniket Manjare el 20 de Feb. de 2021
Respondida: Anmol Dhiman el 25 de Feb. de 2021
i want to know what is the meaning of the last function in this code
features.EnergyAtFreqX(i,:) = sum(signalX_FFT(1:1,2));
what it gives at output
signalX = data.X(i,:);%signal X as temperory variable for operations
features.StdX(i,:) = std(signalX);%Satndard Daviation of Signal X 3rd coummn
signalX = (signalX - mean(data.X(i,:)))/features.StdX(i,:); %Standardization
signalX_FFT = sortrows([f;computeFFT(signalX,L)]',2,'descend');%sortrows(data,column,'accending or decending')
features.FreqX(i,:) = signalX_FFT(1,1);
features.EnergyAtFreqX(i,:) = sum(signalX_FFT(1:1,2));

Respuestas (1)

Anmol Dhiman
Anmol Dhiman el 25 de Feb. de 2021
Hi Aniket,
From the code it is unclear what 'computeFFT' does. However looking at the code, I can tell that that by using sortrows they are trying to find the frequency with the largest magnitude.
To answer about the last statement, one has to look into how computeFFT is defined.
Hope it helps

Categorías

Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by