l**t 发帖数: 170 | 1 怎么调用,实在是不知道该怎么链接
btw 多次调用大概有10k次
这样是不是很影响速度> | l**t 发帖数: 170 | 2 或者matlab里想用fortran编的一个程序该怎么调用
thanks!
【在 l**t 的大作中提到】 : 怎么调用,实在是不知道该怎么链接 : btw 多次调用大概有10k次 : 这样是不是很影响速度>
| i******d 发帖数: 4 | 3 Definitely you can call matlab from Fortran by matlab engine open. I did this
before.
I think you may find an example in the help files of Fortran, one point you
need to be careful about is when you debug the fortran codes, you have to add
all of the related matlab library function into the current fortran project.
otherwise, you will get so many link problems.
good luck
【在 l**t 的大作中提到】 : 怎么调用,实在是不知道该怎么链接 : btw 多次调用大概有10k次 : 这样是不是很影响速度>
| l***s 发帖数: 11 | 4 most recommendation:
under MATLAB,type
help mex
help mbuild
~~~~
这个算不上啥,不过如果中间数据so多的话就不好说了,看你的cpu和ram了。
另外matlab中的function要加mx前缀,
例如:mxDestroyArray
等等了,
【在 l**t 的大作中提到】 : 怎么调用,实在是不知道该怎么链接 : btw 多次调用大概有10k次 : 这样是不是很影响速度>
| l**t 发帖数: 170 | 5
没看懂,直接在fortran里写mxFunctionName吗>
要求matlab和fortran在一个目录里吗?
bow
【在 l***s 的大作中提到】 : most recommendation: : under MATLAB,type : help mex : help mbuild : : ~~~~ : 这个算不上啥,不过如果中间数据so多的话就不好说了,看你的cpu和ram了。 : 另外matlab中的function要加mx前缀, : 例如:mxDestroyArray : 等等了,
|
|