Hi,
I made some acoustic experiments. For each experiment I have 10 measurements (hit the object and measure the acoustic response with a microphone -> 10x) and therefore 10 different fft plots. Is there any way to merge these fft curves? My aim is to get 1 curve containing the data from all 10 ffts.
Thanks alot.

댓글 수: 2

Domanic
Domanic 2018년 8월 16일
편집: Domanic 2018년 8월 16일
Hi Florian,
Do you mean that you want to see each fft plot on the same graph? If that's the case, it's as simple as using the hold function, for example:
n=1024;
plot(fftshift(abs(fft(randn(1,n)))));
hold all;
plot(fftshift(abs(fft(randn(1,n)))));
If you're just looking to combine the data, then it might be sufficient to just take the mean of the 10 spectra?
Florian Spiegel
Florian Spiegel 2018년 8월 16일
편집: Florian Spiegel 2018년 8월 16일
No. I want to get 1 curve in 1 plot. Something like a moving average or an interpolation of 10 data sets (each a vector of 20480 points in time domain). The mean gives a false result because of slightly differing peaks.

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

 채택된 답변

Star Strider
Star Strider 2018년 8월 16일

0 개 추천

I would take the ensemble average, either of the time-domain signals before you take the fft, or of the individual Fourier transformed signals. This requires that the time-domain signals be sampled at the same frequency and are the same lengths, or that the Fourier transforms of them all share a common frequency vector. To do this, simply concatenate your signals in a matrix, and take the average across the appropriate dimension.

댓글 수: 2

Florian Spiegel
Florian Spiegel 2018년 8월 16일
This is the best option, I think. Thank you.
Star Strider
Star Strider 2018년 8월 16일
As always, my pleasure.

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

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

태그

질문:

2018년 8월 16일

댓글:

2018년 8월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by