How can I add a 0db noise to my randomly generated data?
1 回表示 (過去 30 日間)
古いコメントを表示
I simulated some random data and wish to add different db levels of noise to the data below
n = 5000;
m = 5000;
r =5;
Wtheo = 10*rand(m,r);
Htheo = 10*rand(r,n);
X = Wtheo*Htheo; % Synthetic Data
N = 7.5*randn(m,n);
SNR = snr(X,N); % this gives me an SNR of 25db.
% How do I get 0 db? Is there a better way to do this?
data = X + N;
0 件のコメント
回答 (1 件)
Hiro Yoshino
2020 年 9 月 8 日
why don't you use awgn?
you can basically add whatever you want.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Random Number Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!