From Fortran, call MATLAB Compiler C shared library
No License
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 (2024). From Fortran, call MATLAB Compiler C shared library (https://www.mathworks.com/matlabcentral/fileexchange/18449-from-fortran-call-matlab-compiler-c-shared-library), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Application Deployment > MATLAB Compiler >
- MATLAB > External Language Interfaces > Fortran with MATLAB >
Tags
Acknowledgements
Inspired by: Access a MATLAB Compiler Generated DLL, Matlab -> dl l-> JNI -> Java working example
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |