MATLAB sound - code example

Version 1.1.0.1 (1.99 KB) by Steve
MATLAB sound code example - acquiring audio data into MATLAB
22.7K Downloads
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:
http://www.mathworks.com/sound

Cite As

Steve (2026). MATLAB sound - code example (https://ch.mathworks.com/matlabcentral/fileexchange/12378-matlab-sound-code-example), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Audio I/O and Waveform Generation in Help Center and MATLAB Answers
Version Published Release Notes
1.1.0.1

Updated license

1.1.0.0

Added BSD License

1.0.0.0

Updated description