How to generate noise from 950 to 1050 Hz for 0.2 sec?
11 次查看(过去 30 天)
显示 更早的评论
How to generate noise from 950 to 1050 Hz for 0.2 sec? Please help me.
2 个评论
Image Analyst
2020-3-1
How many elements do you want? Note that you should have at least enough to satisfy the Nyquist frequency. As long as you have that, you're free to have as many elements as you want define the 0.2 seconds. How about a million points?
采纳的回答
Thiago Henrique Gomes Lobato
2020-3-1
Choose Fs, generate broadband noise, filter with a bandpass:
Fs = 44100;
Tmax = 0.2;
Samples = Tmax*Fs;
noise = randn(Samples,1);
noise = bandpass(noise,[950 1050],Fs);
pspectrum(noise,Fs)
4 个评论
Thiago Henrique Gomes Lobato
2020-3-1
sound(noise,Fs)
Keep in mind that 0.2 s is almost nothing
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Signal Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!