Borrar filtros
Borrar filtros

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

10 visualizaciones (últimos 30 días)
I have a regular signal in a vector, I want to add 5% gaussian noise to it, anyone got ideas? Thanks
  3 comentarios
Image Analyst
Image Analyst el 19 de Abr. de 2017
So, did my code below do what you want? If not, what do you want?

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 18 de Abr. de 2017
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 comentarios
kasimala venkatanagaraju
kasimala venkatanagaraju el 6 de Abr. de 2019
sir, I want to generate noise contaminated signal with zero mean and standard deviation of 2%. Can you help me how to generate it.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Measurements and Feature Extraction en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by