call fortran code from matlab

11 vues (au cours des 30 derniers jours)
Hassan ELSahely
Hassan ELSahely le 1 Fév 2019
Commenté : mani maniabadi le 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.

Réponse acceptée

KSSV
KSSV le 1 Fév 2019
Modifié(e) : KSSV le 1 Fév 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 commentaires
mani maniabadi
mani maniabadi le 16 Mar 2020
you must use fortran mex file. in this way, matlab call fortran exacutable file.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Fortran with MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by