I want to create a three dimensional array with standard distance one in each direction, so that i receive, with x=10; y=10; z=10; 1000 cells, for example. In the next step, i want to assign an additional variable "E" to each cell where its worth consist of a gaussian distribution with mean 1 and variance 0,1.
I have already tried to create a multidimensional array using:
import numpy as np
x = np.array([[range(11)],[range(11)],[range(11)]],dtype=int)
Aswell as:
x,y,z = mgrid[0:11, 0:11, 0:11]
But i do not know if it is the kind of type i am looking for and how to add a variable to each cell of it.
I am pretty new to programming and python. As additional modules i want to use numpy, scipy and matplotlib.
Thanks for help!
Best regards.