Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

从 Fortran 调用 MATLAB

编写可用于 MATLAB 的 Fortran 程序

引擎应用程序是独立的程序,它们允许您从自己的 Fortran 程序调用 MATLAB®,从而将 MATLAB 用作计算引擎。要编译引擎应用程序,请调用 mex 函数。

引擎应用程序需要已安装版本的 MATLAB;您无法在只有 MATLAB Runtime 的机器上运行 MATLAB Engine。

Fortran Engine API 函数

engOpenStart MATLAB engine session
engCloseQuit MATLAB engine session
engEvalStringEvaluate expression in string
engGetVariableCopy variable from MATLAB engine workspace
engPutVariablePut variable into MATLAB engine workspace
engOutputBufferSpecify buffer for MATLAB output

主题