How do i generate a sound directed to one headphone?

2 views (last 30 days)
Hi all, I need some help in order to generate a sound directed only to one headphone. I've already generated the sound wich i believe is in stereo:
amp=1 ;
Fs=10000 ;
t=0:1/Fs:2;
A=amp*sin(2*pi*440*t);
but i'm stuck here.
Thanx to all.

Answers (1)

Nicolas B.
Nicolas B. on 4 Dec 2019
try soundsc to do so.

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!