In MATLAB there is an easy way to define multidimensional arrays e.g.
A(:,:,1) = [1,2,3; 4,5,6];
A(:,:,2) = [7,8,9; 10,11,12];
>> A
A(:,:,1) =
1 2 3
4 5 6
A(:,:,2) =
7 8 9
10 11 12
where the first two indices are respectively, for the rows and columns of the ith matrix (or page, see picture below) stored in A;
Does anybody know how can I define the same structure in python?
