You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
The MATLAB Compiler (v4, R14 onwards) can package MATLAB code into an executable or C/C++ shared library. Calling a C shared library from Fortran, however, can be difficult. The mixed-language issue is C vs. Fortran calling conventions. This is an example of how to call a MATLAB Compiler-generated C shared library from Fortran.
Cite As
George Thiers (2026). From Fortran, call MATLAB Compiler C shared library (https://se.mathworks.com/matlabcentral/fileexchange/18449-from-fortran-call-matlab-compiler-c-shared-library), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Access a MATLAB Compiler Generated DLL, Matlab -> dl l-> JNI -> Java working example
General Information
- Version 1.0.0.0 (3.92 KB)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
