Fortran MEX API
使用此库在 MATLAB® 环境中通过 Fortran MEX 文件执行操作
在 MEX 文件中使用 mexFunction
,就像在 Fortran 程序中使用 subroutine
一样。要调用 MATLAB 函数,请使用 mexCallMATLAB
或 mexEvalString
。要在 MEX 文件和 MATLAB 工作区之间传递数据,请使用 mexGet*
和 mexSet*
函数。
mexFunction | Entry point to Fortran MEX function |
mexFunctionName | 当前 MEX 函数的名称 |
mexAtExit | Register function to call when MEX function clears or MATLAB terminates |
mexCallMATLAB | Call MATLAB function, user-defined function, or MEX file |
mexCallMATLABWithTrap | Call MATLAB function, user-defined function, or MEX file and capture error information |
mexEvalString | Execute MATLAB command in caller workspace |
mexEvalStringWithTrap | Execute MATLAB command in caller workspace and capture error information |
mexGetVariable | Copy of variable from specified workspace |
mexGetVariablePtr | Read-only pointer to variable from another workspace |
mexPutVariable | Array from MEX function into specified workspace |
mexPrintf | ANSI C PRINTF-style output routine |
mexErrMsgIdAndTxt | Display error message with identifier and return to MATLAB prompt |
mexWarnMsgIdAndTxt | Warning message with identifier |
mexIsLocked | Determine if MEX file is locked |
mexLock | Prevent clearing MEX file from memory |
mexUnlock | Allow clearing MEX file from memory |
mexMakeArrayPersistent | Make array persist after MEX file completes |
mexMakeMemoryPersistent | Make memory allocated by MATLAB persist after MEX function completes |