Search This Blog

Random sequence Generation in MATLAB | Part 1

Many practical sequences cannot be described by a mathematical expression.
These sequences are called random (or stochastic) sequences and are characterized by parameters of the associated probability density functions or their statistical moments.

In MATLAB two types of random sequences are available. The rand(1,N) generates a length N random sequence whose elements are uniformly distributed between [O, l].


The randn(1 ,N) generates a length N Gaussian random sequence with mean 0 and variance 1. Other random sequences can be generated using transformations of the above functions.


No comments

MATLAB