Rayleigh Noise Generator

(Has been removed) Generate Rayleigh distributed noise

Rayleigh Noise Generator has been removed. Use the MATLAB Function (Simulink) block and randn function instead.

Library

Noise Generators sublibrary of Comm Sources

  • Rayleigh Noise Generator block

Description

The Rayleigh Noise Generator block generates Rayleigh distributed noise. The Rayleigh probability density function is given by

f(x)={xσ2exp(x22σ2)x00x<0

where σ2 is known as the fading envelope of the Rayleigh distribution.

The block requires you to specify the Initial seed for the random number generator. If it is a constant, then the resulting noise is repeatable. The sigma parameter can be either a vector of the same length as the Initial seed, or a scalar. When sigma is a scalar, every element of the output signal shares that same value.

Initial Seed

The Initial seed parameter initializes the random number generator that the Rayleigh Noise Generator block uses to add noise to the input signal. When multiple blocks in a model have the Initial seed parameter, you can choose different initial seeds for each block to ensure different random streams are used in each block. Set Initial seed to an integer value for repeatable results or use the randi function to randomize your results.

Attributes of Output Signal

The output signal can be a frame-based matrix, a sample-based row or column vector, or a sample-based one-dimensional array. These attributes are controlled by the Frame-based outputs, Samples per frame, and Interpret vector parameters as 1-D parameters. See Sources and Sinks for more details.

The number of elements in the Initial seed parameter becomes the number of columns in a frame-based output or the number of elements in a sample-based vector output. Also, the shape (row or column) of the Initial seed parameter becomes the shape of a sample-based two-dimensional output signal.

Parameters

Sigma

Specify σ as defined in the Rayleigh probability density function.

Initial seed

The initial seed value for the random number generator.

Sample time

The period of each sample-based vector or each row of a frame-based matrix.

Frame-based outputs

Determines whether the output is frame-based or sample-based. This box is active only if Interpret vector parameters as 1-D is unchecked.

Samples per frame

The number of samples in each column of a frame-based output signal. This field is active only if Frame-based outputs is checked.

Interpret vector parameters as 1-D

If this box is checked, then the output is a one-dimensional signal. Otherwise, the output is a two-dimensional signal. This box is active only if Frame-based outputs is unchecked.

Output data type

The output can be set to double or single data types.

References

[1] Proakis, John G., Digital Communications, Third edition, New York, McGraw Hill, 1995.

See Also

Blocks

Functions

Introduced before R2006a