I have audio signal and I want to know code to convert that audio signal analog to digital on matlab? thank you.
Best Answer
audiorecorder() is one way. But there are other approaches, including in the DSP toolbox, the Instrument Control toolbox, and the Data Acquisition toolbox, depending on how the hardware is connected and on your more specific needs. For example the approach you would take for measuring distances according to timing at multiple microphones is not the same as what you would take for Karaoke.
Serial ports do not send constant values: the protocol is an asynch protocol with a "start bit" and a "stop bit" (one of which breaks the other portions of the protocol), and between 7 and 10 data bits (up to 12 data bits in some variations.)
Best Answer