View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
MATLAB sound - code example

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

3.9 | 22 ratings Rate this file 14 Downloads (last 30 days) File Size: 1.99 KB File ID: #12378 Version:
image thumbnail

MATLAB sound - code example


Steven Kolak (view profile)


23 Sep 2006 (Updated )

MATLAB sound code example - acquiring audio data into MATLAB

| Watch this File

File Information

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:


This file inspired Run Length Encoding, Run Length Decoding, Channel Coding Techniques, Tdma Basd Manet, Binery Digital Modulation Technique, Frequency Domain Filtering.Zip, and Smart Antenna Based Mobile Ad Hoc Network.

Required Products Data Acquisition Toolbox
MATLAB release MATLAB 7.3 (R2006b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (29)
08 Aug 2010 Abhinav Parkhi

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.

Comment only
06 Jan 2009 Bharath Ramakrishna  
18 Oct 2008 yang yang  
21 Sep 2008 zhang xiaolong  
02 Jun 2008 oldokh tsendayush

matlab m-ary to sound cart



Comment only
08 Apr 2008 Hafsa Mustafa  
14 Mar 2008 rajesh beldar

This will help to analise our broadcast quality of the signal

12 Feb 2008 Asif Manan  
04 Feb 2008 Waqas Hussain  
02 Feb 2008 duong nguyen

need download

Comment only
21 Nov 2007 Marko Kanadi

I need this

17 Nov 2007 won benson


Comment only
25 Oct 2007 Nilantha Nawarathne  
22 Oct 2007 Maycee Chen  
17 Oct 2007 aye thu

I want to study the matlab source code.

Comment only
20 Aug 2007 umair mughal  
03 Jul 2007 sundar kalu  


Comment only
09 Jun 2007 Miguel Flores

its a good program

Comment only
14 May 2007 vivek dongre

sound file

08 May 2007 azher m  
05 May 2007 ghader matin  
10 Apr 2007 ninad wasulkar

very difficult to find codes

27 Mar 2007 Hao Yanchun

Thank you for your work!

08 Mar 2007 faten a


14 Nov 2006 Jitendra Das  
16 Oct 2006 sara mohamed  
14 Oct 2006 Jason McNeil  
25 Sep 2006

Updated description

01 Nov 2010 1.1

Added BSD License

01 Sep 2016

Updated license

Contact us