-1

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.

4

1 回答 1

1

Matlab 和 Fortran 都使用以列为主的存储顺序,所以如果你只是做了类似的事情write(iounit) array,你发布的例子应该没​​问题。

于 2013-01-02T22:30:14.600 回答