If I write out a fortran NxNxN array in binary then read it back into matlab and use
array = RESHAPE(inputdata,[N N N])
will it retain the same structure? i.e. will array(i,j,k) in Matlab correspond to array(i,j,k) in Fortran? Or do I have to change the ordering? Thanks.