jeudi 18 février 2016

Create a 3D matrix with the 3rd dimension being a random distribution

I am trying to create in MATLAB a 3D matrix (say, x,y,z). The x and y dimensions represent a 2D location (addressable by index x and y) and z should represent a vector containing random numbers of a normal distribution.

For example, if i were to extract the vector (3,5,z), it would give me all the random values in the z dimension at the location (3,5). x and y should both be of size 100 and z should be of size 1000.




Aucun commentaire:

Enregistrer un commentaire