Universal MEX wrapper

Version 1.0.0.0 (15.8 KB) by Thomas
Call any function in a shared library from Matlab (with some limits on the function signature).
531 Downloads
Updated 19 Mar 2012

View License

Suppose you wish to expose a FORTRAN or C function within Matlab without making the effort to write a MEX wrapper. (For instance, writing MEX wrappers for all BLAS/LAPACK routines would be a massive undertaking.) This package will work if:

1) The function is a void type, or the user doesn't care about the function return value.
2) The function arguments are all references to numeric arrays.

Of course, not every function fits the criteria, but it might be easier to write a C wrapper for these tools than to write a MEX wrapper from the ground up. Extend these tools to suit your needs.

Cite As

Thomas (2024). Universal MEX wrapper (https://www.mathworks.com/matlabcentral/fileexchange/35726-universal-mex-wrapper), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Fortran with MATLAB in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0