add noise
4 ビュー (過去 30 日間)
古いコメントを表示
How can i add some noise to a signal that i had already defined its equation?
0 件のコメント
採用された回答
Wayne King
2012 年 3 月 9 日
You can use randn()
t = 0:0.001:1;
x = cos(2*pi*100*t);
y = x+randn(size(t));
Of course that assumes you want N(0,1) additive noise. If you want zero-mean Gaussian white noise with a different variance, then use
y = x+sqrt(var_value)*randn(size(t));
where var_value is the variance you want.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Import and Analysis についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!