t = [0:1/4000:1-1/4000];
cos4000 = cos(1000*2*pi*t);

%

t = [0:1/1500:1-1/1500];
cos1500 = cos(1000*2*pi*t);

%

sound(cos4000,4000);
pause(1);
sound(cos1500,1500);