can you please tell me about the MATLAB mex function is it JAVA or C/C++ or FORTRAN?

Can you please tell me about the MATLAB mex function is it JAVA or C/C++ or
FORTRAN? regards
Emad

답변 (1개)

Jason Ross
Jason Ross 2012년 11월 5일
What Are MEX-Files?
You can call your own C, C++, or Fortran subroutines from the MATLAB command line as if they were built-in functions. These programs, called binary MEX-files, are dynamically-linked subroutines that the MATLAB interpreter loads and executes. MEX stands for "MATLAB executable."
More information here:

댓글 수: 2

The question might be, "Which programming language is the command 'mex' itself implemented in?" If so then the answer is mex.m is a MATLAB routine that invokes another MATLAB routine which invokes a command script at the shell level. The shell script invokes a variety of utility routines and eventually invokes the system compiler that has been configured via "mex -setup".
That is also a correct answer ... although the original question could likely do with some elaboration.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

태그

질문:

2012년 11월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by