MATLAB: How to create 3d array equivalent to fortran dimension

3d arrayfortran to matlab

Hello all, I have this fortran code
dimension x(2,m,n)
where m=100, n=40 Now how to convert this into the matlab?

Best Answer

Perhaps you mean:
x = zeros(2, m, n)