Main Content

Fortran MEX API

이 라이브러리를 사용하여 Fortran MEX 파일 작업을 MATLAB® 환경에서 수행

Fortran 프로그램에서 subroutine을 사용하는 것처럼 MEX 파일에서 mexFunction을 사용할 수 있습니다. MATLAB 함수를 호출하려면 mexCallMATLAB이나 mexEvalString을 사용하십시오. MEX 파일과 MATLAB 작업 공간 간에 데이터를 전달하려면 mexGet* 함수와 mexSet* 함수를 사용하십시오.

mexFunctionFortran MEX 함수에 대한 진입점
mexFunctionNameName of current MEX function
mexAtExitRegister function to call when MEX function clears or MATLAB terminates
mexCallMATLABCall MATLAB function, user-defined function, or MEX file
mexCallMATLABWithTrapCall MATLAB function, user-defined function, or MEX file and capture error information
mexEvalStringExecute MATLAB command in caller workspace
mexEvalStringWithTrapExecute MATLAB command in caller workspace and capture error information
mexGetVariableCopy of variable from specified workspace
mexGetVariablePtrRead-only pointer to variable from another workspace
mexPutVariableArray from MEX function into specified workspace
mexPrintfANSI C PRINTF 스타일 출력 루틴
mexErrMsgIdAndTxtDisplay error message with identifier and return to MATLAB prompt
mexWarnMsgIdAndTxtWarning message with identifier
mexIsLockedDetermine if MEX file is locked
mexLock메모리에서 MEX 파일 지우기를 방지
mexUnlockAllow clearing MEX file from memory
mexMakeArrayPersistentMake array persist after MEX file completes
mexMakeMemoryPersistentMake memory allocated by MATLAB persist after MEX function completes