how to produce a signal distorted with noise?
古いコメントを表示
回答 (1 件)
David Young
2011 年 3 月 3 日
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);
カテゴリ
ヘルプ センター および File Exchange で Variables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!