how do i add awgn noise to input signal

i want to add noise(awgn) of 20 db to input signal and the resultant would be desired signal of the adaptive filter and also i want to normalize the power to 1 db...can someone tell me how to do this in matlab
thanks

2 Comments

A number of people have asked about adding awgn noise; I suggest searching MATLAB Answers for awgn and reading through what has been suggested before.
Hi abi, Here is a matlab code to add required amount of noise to achieve given SNR. You can read it and modified it to your choice

Sign in to comment.

Answers (1)

Chris
Chris on 25 May 2012
use the comm toolbox: comm.AWGNChannel block. the properties of this block are in the help pages. get an object on it like awgnobj = comm.AWGNChannel(...); and step it like y = step(awgnobj, insignal); simple insignal vector has elements from {-1, 1} set. output is return in y.

Categories

Asked:

abi
on 9 May 2011

Community Treasure Hunt

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

Start Hunting!