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

3 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Star Strider
Star Strider il 10 Giu 2017
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.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by