Editor: MATLAB supports sound acquisition and generation using the 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.