FUNCTION REFERENCE

awgn

Add white Gaussian noise using the session random stream.

Add white Gaussian noise using the session random stream.

Syntax

[y,variance] = awgn(x,snr,signalpower,seed,powertype)

Default signal power is 0 dBW, powertype 'db'. 'measured' uses mean(abs(x(:)).^2) across all channels. 'linear' means SNR ratio and signal power in watts. Optional integer seed creates an independent temporary stream and leaves rng state unchanged. Real input gets real noise; complex input gets circular complex noise of the specified total variance. Output preserves input dimensions.

Example

rng(5); [y,v]=awgn(ones(8,1),10,'measured'); v

Differences from MATLAB: no built-in RandStream exists; numeric seeds only. SNR must be scalar. Normal draws follow the existing session generator, which does not promise bit identity with MATLAB randn.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.