フィルターのクリア

How can I add gaussian noise in a specific percentage (e.g. add 5% gaussian noise to a signal)?

12 ビュー (過去 30 日間)
I have a regular signal in a vector, I want to add 5% gaussian noise to it, anyone got ideas? Thanks
  3 件のコメント
Pedro Alejandro Garza Juarez
Pedro Alejandro Garza Juarez 2017 年 4 月 19 日
It's 5% uncorrelated Gaussian random noise.
Image Analyst
Image Analyst 2017 年 4 月 19 日
So, did my code below do what you want? If not, what do you want?

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2017 年 4 月 18 日
Try this:
period = 20;
t = linspace(-20, 20, 500);
signal = 10*sin(2 * pi * t / period);
noiseSigma = 0.05 * signal;
noise = noiseSigma .* randn(1, length(signal));
noisySignal = signal + noise;
plot(t, noisySignal, 'r.', 'MarkerSize', 10);
hold on;
plot(t, signal, 'b-', 'LineWidth', 3);
grid on;
  5 件のコメント
kasimala venkatanagaraju
kasimala venkatanagaraju 2019 年 4 月 6 日
sir, I want to generate noise contaminated signal with zero mean and standard deviation of 2%. Can you help me how to generate it.
Jubeyer Rahman
Jubeyer Rahman 2020 年 4 月 7 日
Shouldn't be there be an sqrt before sigmanoise?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by