MATLAB: How to create arrays for 3D matrix

matrixmatrix array

Hello
I created an array in order to put the results into it. Meanwhile, my matrix is 3D.
The 3D matrix is:
[4,3,2]=size(S)
And the created array is:
Result=[];
Is that a true definition?
Cheers

Best Answer

k = rand(4,3,2) ; % create random 3d data
[m,n,p] = size(k) ; % get size