function chords2(tone,a,b)
Fs=2^(13);
n=32;
x = cos((1:2^(12))*2*pi*tone*a/Fs);
x = x+cos((1:2^(12))*2*pi*tone*b/Fs);
newx = audioComp4(x);
len = length(x);
nwx = floor(len/n);
x = x(1:n*nwx);
xshort = x(n+1: end-n);
xshort = 0.3*xshort/max(abs(xshort));
x = 0.3*x/max(abs(x));
newx = 0.3*newx/max(abs(newx));
sound(x,Fs)
pause(1)
sound(newx,Fs)
audiowrite('chord2in3.wav', x, Fs);
audiowrite('chord2out3.wav', newx, Fs);
RMSE = sqrt(mean((xshort(:) - newx(:)).^2))
t=1000:1200;
plot(xshort(t),'k-');hold on;
plot(newx(t),'g-');hold off;
title('Original Chord Audio Versus Compressed Chord Audio')
xlabel('Number Of Data Points (1000 to 1200 in the actual audio matrix)')
legend('Original','Compressed')
Not enough input arguments.
Error in chords2 (line 9)
x = cos((1:2^(12))*2*pi*tone*a/Fs);