MATLAB: How to simultaneously play and record sound waves of wide range


matlab program

Best Answer

Use the DSP Toolbox; or use the Data Acquisition toolbox with an A/D convertor board that is connected to the microphone, and to the amplifier and speakers.
Do not bother trying to use the audiorecorder along with the audioplayer for this kind of work: they have too much latency for this purpose, and you cannot synchronize them and you cannot time-stamp.