add noise
조회 수: 1 (최근 30일)
이전 댓글 표시
How can i add some noise to a signal that i had already defined its equation?
댓글 수: 0
채택된 답변
Wayne King
2012년 3월 9일
You can use randn()
t = 0:0.001:1;
x = cos(2*pi*100*t);
y = x+randn(size(t));
Of course that assumes you want N(0,1) additive noise. If you want zero-mean Gaussian white noise with a different variance, then use
y = x+sqrt(var_value)*randn(size(t));
where var_value is the variance you want.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Signal Processing Toolbox에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!