So I have a vector V of values with dimension [5,1]. For each value in this vector V[i] I would like to generate let's say 5 numbers normally distribuited with mean V[i] and a fixed st deviation. So in the end I will have a matrix [5,5] which on the i-row has 5 values normally distributed with mean V[i]. How can i do this with octave/matlab without using for loop ? Practically I would like to pass to the normrnd function a vector of means V and get a set of n normally distributed number for each mean in the vector V.
Aucun commentaire:
Enregistrer un commentaire