- you want each element in Frequency (40k elements) to be changed to somewhere between 90% and 110% of it's current value.
- you want a uniform distribution, not say normally distributed noise.
10% random noise to an array of values
5 ビュー (過去 30 日間)
古いコメントを表示
How do I add 10 % random noise to freq = 1:40e3
0 件のコメント
回答 (1 件)
William Smith
2018 年 4 月 3 日
Not totally clear what you want, but let's assume
Then:
multiplier = 0.9 + rand(size(freq)) * 0.2;
answer = freq .* multiplier;
1 件のコメント
Muhammad Tauha Ali
2021 年 8 月 30 日
the reason for above equation is explained here: http://ocw.uci.edu/upload/files/mae10_w2011_lecture13.pdf
1.1-0.9=0.2 meaning +-10% noise.
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!