MATLAB sound - code example

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


Updated 1 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 (2022). MATLAB sound - code example (, MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!