Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Recording from line input in matlab

Status
Not open for further replies.

mehboob_iiui

Full Member level 2
Full Member level 2
Joined
May 20, 2006
Messages
132
Helped
8
Reputation
16
Reaction score
1
Trophy points
1,298
Location
Rawalpindi - Pakistan
Activity points
2,013
Can I record audio in matlab , plugging my microphone into the line in of my sound card,
actually I want to record from two microphones, simultaneously,

how can it be possible?
 

Hi
You can use Matlab's Data aquisition toolbox.

this toolbox provides you the necessary functions for capturing audio signals from your soundcard.
 

This code acquires and plots 5000 samples of two-channel audio at sample rate 22050.
It works in Windows. I don't think it requires any toolbox.
You may need to configure your sound card and/or mixer for two-microphone input.

y = wavrecord(5000, 22050, 2);
subplot(2,1,1); plot(y:),1));
subplot(2,1,2); plot(y:),2));
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top