主题:接fortran调用matlab时出差
当用fortran调用matlab时
为什么运行时出现 ??? Undefined function or variable 'test'
program main
implicit none
integer,parameter :: rows=100, cols=100
real*8 :: M(rows,cols)
integer :: i
call random_seed()
call random_number(M)
open(100,file='matrix M.txt')
write(100,'(<cols>E25.15)') transpose(M)
close(100)
call system("matlab -r test")
end program main