MatLab上で,ホワイトノイズの条件 (1~1000Hz,ランダムな振幅(±14以下)のノイズを作りたい。)どうしたらよいですか?
Show older comments
MatLab上で,ホワイトノイズの条件 (1~1000Hz,ランダムな振幅(±14以下)のノイズを作りたい。)どうしたらよいですか?
2 Comments
Akira Agata
on 24 Jan 2019
想定されているのは「加法性白色ガウス雑音 (AWGN: Additive White Gaussian Noise)」 でしょうか?もしそうでしたら、Communication System Toolboxの awgn 関数 (+ BPFによる帯域制限) で可能です。ただ、AWGNであれば、その定義上、振幅は必ずしも ±14以下にはなりません (制限することは可能ですが、厳密なAWGNの定義からはずれます)。
Amit Kansal
20 minutes ago
Can you offer more details on how you want to model the spectral content? Is there a signal that you laready have to which you want to add white gaussian noise?
Answers (1)
Shoumei
on 25 Jan 2019
rand関数で0~1の一様分布乱数を生成できるので、それを+-14に増幅してやれば良いと思います。
sig = (rand(1,10000)-0.5)*14*2; % 1万点の乱数を生成
figure, plot(sig)
figure, periodogram(sig, [], [], 1000) % Fs=1000で周波数特性表示
Categories
Find more on 伝播とチャネル モデル in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!