call fortran code from matlab

10 views (last 30 days)
Hassan ELSahely
Hassan ELSahely on 1 Feb 2019
Commented: mani maniabadi on 16 Mar 2020
I have a matlab code to compute some variables. i have another fortran code that computes another variable. I wanna make matlab open fortran and run it then takes the output as an initial value to compute another variables. can somebody help? and thank you in advance.

Accepted Answer

KSSV
KSSV on 1 Feb 2019
Edited: KSSV on 1 Feb 2019
If the code is pretty simple..convert the Fortran code to MATLAB and use....else you should explore the option of mex files.
  3 Comments
mani maniabadi
mani maniabadi on 16 Mar 2020
you must use fortran mex file. in this way, matlab call fortran exacutable file.

Sign in to comment.

More Answers (0)

Categories

Find more on Fortran with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!