That looks appropriate. You can write it more compactly but internally it would come out as the same thing:
x = [0:.1:1000*pi];
soundsc( [sin(x(:)), cos(x(:))] );
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!