Jump to content

MEX file

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Citation bot (talk | contribs) at 18:27, 6 April 2020 (Add: title. Converted bare reference to cite template. | You can use this bot yourself. Report bugs here. | Activated by Zppix | Category:Computing stubs‎ | via #UCB_Category). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A MEX file is a type of computer file that provides an interface between MATLAB or Octave and functions written in C, C++ or Fortran. It stands for "MATLAB executable".

When compiled, MEX files are dynamically loaded and allow external functions to be invoked from within MATLAB or Octave as if they were built-in functions.

To support the development of MEX files, both MATLAB and Octave offer external interface functions that facilitate the transfer of data between MEX files and the workspace. In addition to MEX files, Octave has its own format using its own native API, with better performance.[1]

References

  1. ^ "Mex-Files (GNU Octave (Version 5.2.0))".

External links