Using FORTRAN code in MATLAB

3 Ansichten (letzte 30 Tage)
elton nazareth
elton nazareth am 31 Aug. 2020
Kommentiert: Rik am 31 Aug. 2020
Hi guys,
Would like some input on whether I could run a fortran code in MATLAB.
If so what are the requirements and I am talking about an entire code created in Fortran

Akzeptierte Antwort

Rik
Rik am 31 Aug. 2020
You can compile Fortran code to mex, after which you can use it in Matlab as a function. Read the documentation for the API details.
  3 Kommentare
James Tursa
James Tursa am 31 Aug. 2020
As long as you have a supported Fortran compiler, the procedure is pretty much the same. Do you have a supported Fortran compiler installed?
Rik
Rik am 31 Aug. 2020
I can't test anything for you, since I have very limited access to MacOS.
This thread might help you out if the standard mex setup doesn't work for you. It looks like you need to install an external tool if you want to compile Fortran, see the system requirements.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Fortran with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by