You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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://www.mathworks.com/matlabcentral/fileexchange/12378-matlab-sound-code-example), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0.1 (1.99 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux