필터 지우기
필터 지우기

Transformation of time domain to frequency domain

조회 수: 2 (최근 30일)
KAO LEKOBA
KAO LEKOBA 2021년 7월 25일
답변: Swetha Polemoni 2021년 7월 28일
i am new in matlab,i need help with data that is in time domain,particularly displacement(elevation) against time,obtained from GPS, i need help to firstly filter the data to remove noise then transform using FFT to obtain frequency domain.the idea is to have a graph of power against frequency. The data was taken at 10Hz sampling frequency for 10minutes.
  댓글 수: 1
Alaster Meehan
Alaster Meehan 2021년 7월 26일
Do you have the Signal Processing Toolbox? The Signal Processing Toolbox has a nice app for designing filters. Do you know what frequencies you need to filter out the noise? You may find that prefiltering the data won't help the power spectrum much, or that it is easer/better to post process the power spectrum.
To get a power spectrun you just need to take the absolute value of the fourier transform. Its good to normalise by dividing by the number of samples. Also you will only need the first half of the first half of the fft data.
PowerSpectrum = abs(fft(Data))/numSamples;
PowerSpectrum = PowerSpectrum(1:(floor(NumSamples/2) + 1);
The highest frequency in the power spectrum will be half the sample rate, in this case 5Hz.
The first frequency component may dominate your power spectrum, this value is the offset or mean of the data, you may not want to plot this value.

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

채택된 답변

Swetha Polemoni
Swetha Polemoni 2021년 7월 28일
Hi
You may find the following documention Digital and Analog Filters useful to understand more about filters. This documentation
"Filtering Data With Signal Processing Toolbox Software" is helpful to understand how the filtering can be done on signals using Signal Processing Toolbox.
Here is an example that you might help you to calculate power spectrum using fft.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Parametric Spectral Estimation에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by