Communications Blockset | ![]() ![]() |
Generate uniformly distributed noise between the upper and lower bounds
Library
Noise Generators sublibrary of Comm Sources
Description
The Uniform Noise Generator block generates uniformly distributed noise. The output data of this block is uniformly distributed between the specified lower and upper bounds. The upper bound must be greater than or equal to the lower bound.
You must specify the Initial seed in the simulation. When it is a constant, the resulting noise is repeatable.
If all the elements of the output vector are to be independent and identically distributed (i.i.d.), then you can use a scalar for the Noise lower bound and Noise upper bound parameters. Alternatively, you can specify the range for each element of the output vector individually, by using vectors for the Noise lower bound and Noise upper bound parameters. If the bounds are vectors, then their length must equal the length of the Initial seed parameter.
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 Signal Attribute Parameters for Random Sources in Using the Communications Blockset 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.
Dialog Box
See Also
Random Source (DSP Blockset); rand
(built-in MATLAB function)
![]() | Triggered Write to File | Unipolar to Bipolar Converter | ![]() |