Audio fft shape is too strange.
Show older comments
ideal graph type is

Original sound is different. 'fft shape' is too different. I think there is a mistake on my code. Please help me.
%This is my code and graph

[data,Fs]=audioread('1st pipe sound.m4a');
N=length(data);
ts=1/Fs;
t=0:ts:N*ts-ts;
F=0:Fs/N:Fs-Fs/N;
FFT_data=fft(data);
subplot(1,2,1)
plot(t,data);
xlabel('time[sec]')
ylabel('Amplitude')
title('1st pipe sound')
subplot(1,2,2)
plot(F,abs(FFT_data)/N);
xlabel('Frequency')
ylabel('Amplitude')
title('1st sound fft result')
Accepted Answer
More Answers (0)
Categories
Find more on Measurements and Spatial Audio in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!