how to produce a signal distorted with noise?
Mostrar comentarios más antiguos
use using randn commmand?
Respuestas (1)
David Young
el 3 de Mzo. de 2011
It depends on what characteristics you want the noise to have. If you want noise from a normal distribution with the samples independent, then yes, randn is the right function. For example, if the noise is to be additive:
N = 500;
signal = sin((1:N) * 0.05);
noiseLevel = 0.1;
noise = noiseLevel * randn(1, N);
noisySignal = signal + noise;
plot(noisySignal);
1 comentario
ap singh
el 4 de Mzo. de 2011
Categorías
Más información sobre Time-Frequency Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!