how can i add noise in particular place of the sine wave?
조회 수: 2 (최근 30일)
이전 댓글 표시
i want to add noise in the middle of the sine wave. but if i use the rand() function it adds noise to the total signal.how to add noise in some parts of the signal only.kindly help me.......
댓글 수: 0
채택된 답변
Rick Rosson
2015년 3월 6일
편집: Rick Rosson
2015년 3월 6일
noise = [ zeros(N,1) ; rand(M,1) ];
distorted = source + noise;
댓글 수: 2
Zikobrelli
2015년 3월 6일
편집: Zikobrelli
2015년 3월 6일
you need to specify the values of M and N. For example, if you want to add noise to the first 10 points of your signal you can use,
N=10
M=numel(t)
changing the values of M and N will enable you to choose the signal indexes where the noise is applied
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!