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

2 次查看(过去 30 天)
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 个评论
Image Analyst
Image Analyst 2013-4-4
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 2013-4-4
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

请先登录,再进行评论。

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Multirate Signal Processing 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by