H2MEX

Convert c and c++ code to mex file.
2.4K Downloads
Updated 19 Mar 2003

No License

H2Mex is a program that gernerates automatically an interface file (MEX file) from header file (the .h file).

The Header file format is a clean C format, It's extended with some modifiers that allows to H2MEX to understand the exact task of a C routine.

The generated source (MEX file source) could be compiled without any modification to create a DLL which is callable from MATLAB.

Cite As

Alaa Makdissi (2026). H2MEX (https://uk.mathworks.com/matlabcentral/fileexchange/3138-h2mex), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R10
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0