how to generate random data point with the beginning 5000 portion data point is zero
Afficher commentaires plus anciens
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 commentaires
Image Analyst
le 4 Avr 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
le 4 Avr 2013
Réponses (1)
Walter Roberson
le 4 Avr 2013
randomdata = randn(1, NumberOfSamples);
randomdata(1:5000) = 0;
1 commentaire
MU
le 4 Avr 2013
Catégories
En savoir plus sur Random Number Generation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!