MATLAB Answers

Ding Liu

Compiling and Linking matdemo1.f

Asked by Ding Liu
on 19 May 2013

Hi, I am learning to use mex file to call FORTRAN from Matlab. Now I know how to compile and link FORTRAN functions, but I do not know how to do the same to MAT files. For example, I do not know to compile and link matdemo1.f, a example MAT file. The softwares I am using are Matlab 2012b, and Intel Visual Fortran Composer XE-2011 (with Microsoft Visual C++ 2010 linker).

The directory path for matdemo1.F is

'C:\Program Files\MATLAB\R2012b\extern\examples\eng_mat\matdemo1.F',

and the directory path for mex option is

'C:\Program Files\MATLAB\R2012b\bin\win64\mexopts'.

How should I do? Anyone who can help me will be sincerely thanked.



No products are associated with this question.

0 Answers

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!