writing fortran mex file

版本 1.0.0.0 (1.9 KB) 作者: Alain Barraud
fortran mex file which call user matlab function with varargin argument.
855.0 次下载
更新时间 2009/3/23

无许可证

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

引用格式

Alain Barraud (2024). writing fortran mex file (https://www.mathworks.com/matlabcentral/fileexchange/23397-writing-fortran-mex-file), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2008b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 MATLAB Compiler 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0