writing fortran mex file
Nessuna licenza
I have found some difficulties to write fortran mexfile and this small example shows how I have considered the problem of exchanging data between matlab and fortran and "vice versa".
My problem was to use some optimzation fortran codes operating upon function written within matlab and with almost the facilities offered by the optimization toolbox functions, in particular the varargin argument for user special function parameters. I also consider the question of fortran write, because the mexprintf does not work "in real time" R2006, R2007 or R2008.
The example is a simple problem. It consists in finding the zero of a nonlinear function by dichotomy. The submission contains a a matlab test, the matlab code fzdm.m (zero finder) and its fortran mexfile implementation fzd.f
Cita come
Alain Barraud (2025). writing fortran mex file (https://it.mathworks.com/matlabcentral/fileexchange/23397-writing-fortran-mex-file), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Application Deployment > MATLAB Compiler >
- MATLAB > External Language Interfaces > Fortran with MATLAB >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
