how to generate random data point with the beginning 5000 portion data point is zero

2 views (last 30 days)
MU
MU on 4 Apr 2013
the description is like this the input is a zero-mean unit variance Gaussian white random sequence. Note that the beginning portion (about 5000 samples) of the signal should be dropped due to initial transient. how to use matlab code to achieve this Thanks
  2 Comments
MU
MU on 4 Apr 2013
Actually, the description is like this the input is a zero-mean unit variance Gaussian white random sequence. Note that the beginning portion (about 5000 samples) of the signal should be dropped due to initial transient.
Now you get it? sorry for the not clearly explain my question

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 4 Apr 2013
randomdata = randn(1, NumberOfSamples);
randomdata(1:5000) = 0;

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!