MATLAB: Sound generation with a particular power

MATLABsound power

How can I generate a sound with a particular power?
Using the sound function to play simple sinusoidal signals, the loudness does not change when I modify the power of the sinusoidal signal. For example, the following signals sound exactly the same:
signal_1 = sin(2*pi*1000*(0:0.01:1));
signal_2 = 10 * sin(2*pi*1000*(0:0.01:1));

Best Answer

help sound
sound(Y,FS) sends the signal in vector Y (with sample frequency FS) out to the speaker on platforms that support sound. Values in Y are assumed to be in the range -1.0 <= y <= 1.0. Values outside that range are clipped.