Hi,
I am using audiowrite to save two sin waves. Here is my code.
fs = 8000; %frequency sample rate
i=1/fs; % interval
t = 0:i:2; % time
phi = 0;% F = 220Hz
f = 220;x = A*sin((2*pi*f*t) + phi);% F = 240Hz
f = 240;y = A*sin((2*pi*f*t) + phi);filex = 'x.wav';filey = 'y.wav';audiowrite(filex,x,fs);audiowrite(filey,y,fs);
Now I want to save two separate waves as left and right channels in the a stereo wav file. How can I do that.
Many Thanks!
Best Answer