필터 지우기
필터 지우기

Matlab Audio FFT at given times

조회 수: 2 (최근 30일)
Hans Buchele
Hans Buchele 2022년 1월 26일
편집: Hans Buchele 2022년 1월 28일
Dear Matlab-Community,
I need to be able to load an audio file, compute an FFT at a given time and extract frequency and peak amplitude in a certain frequency band.
[y1,fs]=audioread('Audio 12.wav')
t=linspace(0,length(y1)/fs,length(y1));
Nfft=2048;
f=linspace(0,fs,Nfft);
X1=abs(fft(y1,Nfft));
plot(f(1:Nfft/2),X1(1:Nfft/2))
xlabel('Frequency');
ylabel ('Power');
title ('FFT Spectrum');
Thanks for any help!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulation, Tuning, and Visualization에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by