La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.
Fortran MEX API
Utiliser cette bibliothèque pour effectuer des opérations dans l’environnement MATLAB® à partir de fichiers MEX Fortran
Utilisez mexFunction
dans un fichier MEX de la même manière que vous utiliseriez subroutine
dans un programme Fortran. Pour appeler une fonction MATLAB, utilisez mexCallMATLAB
ou mexEvalString
. Pour échanger des données entre le fichier MEX et l’espace de travail MATLAB, utilisez les fonctions mexGet*
et mexSet*
.
mexFunction | Entry point to Fortran MEX function |
mexFunctionName | Name of current MEX function |
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 |