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

1 view (last 30 days)
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
Image Analyst
Image Analyst on 4 Apr 2013
But it doesn't even make grammatical sense. I have no idea what you want. How many data point(s) do you want: 1 or 5000? Which of those element(s) are supposed to have a value of zero? What is random? The value? The location (x,y value)? Can you give an example with a smaller array, say one with 10 or 15 elements? Please read this: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
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!