How can I read an audio file in matlab and analyze this file graphically

조회 수: 3 (최근 30일)
Assalam-o-Alaikum sir!
I want to analyze the audio file graphically by using matlab. The first thing is that I've to load it in matlab then plot it. After all that, I also have to save this as matlab data (.mat file).
I don't know how I can do that. Please help me.

채택된 답변

Star Strider
Star Strider 2017년 6월 10일
Use the audioread (link) function to read the file, then the save (link) function to save it as a ‘.mat’ file.
[y,Fs] = audioread(filename);
save('my_sound_file.mat', 'y', 'Fs');
See the plot, linspace (to create your time vector) and related functions to process your sound data.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by