How is audio data stored in matlab?

2 views (last 30 days)
is it stored in simple arrays or multidimensional arrays?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 14 Aug 2013
Edited: Azzi Abdelmalek on 14 Aug 2013
[y,Fs] = audioread('YourAudioFile');
%Y is a nx1 or nx2 array
% Fs is a sample rate
To get the info of your audio file you can use
audioinfo('YourAudioFile')

More Answers (0)

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!