5.0

5.0 | 2 ratings Rate this file 16 Downloads (last 30 days) File Size: 83.5 KB File ID: #11506

Gnu Fortran, C, Lapack and Blas from Windows Matlab

by Kristjan Jonasson

 

23 Jun 2006 (Updated 24 Oct 2007)

Setting up of a free environment for calling Fortran 77 routines from Matlab and using Lapack and Bl

| Watch this File

File Information
Description

According to the Matlab documentation the only supported Fortran compiler is Intel Visual Fortran. The author of this document has experimented with using the free Gnu Fortran 77 via two packages: MinGW and Gnumex, and describes the following procedures:

· Setting up MinGW and Gnumex
· Using Gnumex to make mex file creation compatible with Gnu
· Compiling Fortran programs from within Matlab
· Writing mex gateway functions
· Creating mex files
· Building a Lapack/Blas library
· Linking with the Lapack/Blas library

The document contains two examples of interfacing Fortran with Matlab via a C gateway function, one minimal, and one realistic. A replacement for one Blas routine is supplied, as well as a script for making the Lapack library. The document is rather terse, and the intention is not to teach mex file use. Readers who find faults with the document are encouraged to report this back to the author.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
06 Apr 2007 Raz Ziv

Followed the instructions for creating fortran mex - worked flawlessly. Instructions are precise, comprehensive and clear - a very good document.
Thanks.

24 Aug 2010 Oliver Woodford

Very useful, though could do with having a pdf version of the document.

Please login to add a comment or rating.
Updates
05 Jul 2006

Checking how modification works

24 Oct 2007

Document brought up to date for new versions of software described in it

Tag Activity for this File
Tag Applied By Date/Time
g77 Kristjan Jonasson 22 Oct 2008 08:30:43
gcc Kristjan Jonasson 22 Oct 2008 08:30:43
fortran Kristjan Jonasson 22 Oct 2008 08:30:43
mingw Kristjan Jonasson 22 Oct 2008 08:30:43
gnumex Kristjan Jonasson 22 Oct 2008 08:30:43
mex Kristjan Jonasson 22 Oct 2008 08:30:43

Contact us at files@mathworks.com