Noise (‘white’ noise) is by definition broadband, so it does not have a specific frequency. You can create a 10 kHz signal with noise, but that is as close as you can get to doing what you want.
For example:
len = 15;
f = 1E+4;
Fs = 8192;
t = linspace(0, len, Fs*len);
signal = sin(2*pi*f*t);
sound(signal, Fs)
noise = signal + 0.1*randn(size(signal));
pause(15)
sound(noise, Fs)
You could also create and use an audiplayer object with playblocking, instead of inserting a pause call.
Best Answer