File Exchange

image thumbnail

MATLAB sound - code example

version (1.99 KB) by Steven Kolak
MATLAB sound code example - acquiring audio data into MATLAB


Updated 01 Sep 2016

View License

MATLAB supports sound acquisition and generation using Data Acquisition Toolbox.
This MATLAB code example shows you to acquire two seconds of audio data from a sound card, calculate the frequency components, and plot the results.

Use the "Save and Publish to HTML" button in the MATLAB Editor to execute this example and automatically generate a report of this work.

Learn more about using MATLAB with sound cards at:

Cite As

Steven Kolak (2020). MATLAB sound - code example (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (30)

jie zhang


i am doing mtech project on detection of lung sound using crackle and wheeze sound and using matched wavelet analysis and short time fourier transform using tool as matlab. i need sound processing idea and need to know how to proceed. and i alos recorded sound file in mp3 faormat for analysis purpose.

yang yang

zhang xiaolong

oldokh tsendayush

matlab m-ary to sound cart



Hafsa Mustafa

rajesh beldar

This will help to analise our broadcast quality of the signal

Asif Manan

Waqas Hussain

duong nguyen

need download

Marko Kanadi

I need this

won benson


Nilantha Nawarathne

Maycee Chen

aye thu

I want to study the matlab source code.

umair mughal

sundar kalu



Miguel Flores

its a good program

vivek dongre

sound file

azher m

ghader matin

ninad wasulkar

very difficult to find codes

Hao Yanchun

Thank you for your work!

faten a


Jitendra Das

sara mohamed

Jason McNeil


Updated license

Added BSD License

Updated description

Updated description

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux