If I have a matlab (n,3)
matrix which corresponds to x
,y
,z
coordinates, how would I be able to take that matrix from matlab and transfer it to fortran 90 format?
I've tried saving the variable from matlab and then doing:
implicit none
double precision coord(22323,3)
open(unit=11,file='coord.dat',access='stream',form='unformatted')
read(11) coord
end program kal
But I get trigger breakpoint at read(11) coord
. I've also tried saving it as a .bin
file and had the same issue.
Just to be clear I'm not talking about using mex
I'm just trying to transfer the data into a variable in fortran.