Two functions of Gaussian white noise produced in "reprint" matlab

Source: Internet
Author: User

MATLAB produces Gaussian white noise is very convenient, can directly apply two functions, one is WGN, the other is AWGN. The WGN is used to generate Gaussian white noise, and AWGN is used to add Gaussian white noise to a signal.

1. WGN: Generate Gaussian white noise
y = WGN (m,n,p) produces a Gaussian white noise matrix of M row n columns, and p specifies the intensity of the output noise in DBW units.
y = WGN (m,n,p,imp) specifies the load impedance in ohms (ohm) units.
y = WGN (m,n,p,imp,state) resets the state of the RANDN.

You can also attach some of the iconic parameters after a numeric variable:
y = WGN (..., powertype) specifies the unit of P. Powertype can be ' DBW ', ' dBm ' or ' linear '. The linear strength (linear power) is measured in watts (Watt).
y = WGN (..., outputtype) specifies the output type. OutputType can be ' real ' or ' complex '.

2. AWGN: Adding Gaussian white noise to a signal
y = AWGN (X,snr) adds Gaussian white noise to the signal x. Signal-to-noise ratio snr is measured in db. The strength of x is assumed to be 0dBW. If x is a complex number, the complex noise is added.
y = AWGN (x,snr,sigpower) If Sigpower is a numeric value, it represents the signal strength in dBW, and if Sigpower is ' measured ', the function will measure signal strength before adding noise.
y = AWGN (x,snr,sigpower,state) resets the state of the RANDN.
y = Awgn (..., powertype) specifies the SNR and sigpower units. The powertype can be ' dB ' or ' linear '. If the powertype is ' db ', then the SNR is in db, and Sigpower is in DBW. If Powertype is ' linear ', then the SNR is measured as a ratio, and sigpower is in Watts.

Comments
1. Decibel (decibel, db): decibel (db) is a standard unit of relative power or amplitude level, in other words, a representation unit that we use to represent the difference between two energies, which is not an absolute unit. For example, the electrical system of voltage, current, power and other physical strength is commonly known as the level, the units of the level is usually expressed in decibels, that is, to take a voltage or current as a reference value (0dB), with the amount to be represented by the reference value of the logarithm, and then multiplied by 20 as the level of the decibel (power level value
2. Decibel Watts (DBW, DB Watt): Refers to the power value of the power amplifier measured in decibels when the output power of the 1W is the benchmark.
3. DBm (Db-milliwatt): The number that is compared to 1milliWatt (MW).
0 dBm = 1 MW
Ten dBm = ten MW
DBm = MW
A Gaussian distribution sequence can also be produced directly using the RANDN function, for example:

Y=RANDN (1,2500);
Y=Y/STD (y);
Y=y-mean (y);
a=0.0128;
B=SQRT (0.9596);
Y=a+b*y;

The Gaussian distribution sequence of N (0.0128, 0.9596) is obtained.

Two functions of Gaussian white noise produced in "reprint" matlab

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.