Using FORTRAN code in MATLAB

조회 수: 2 (최근 30일)
elton nazareth
elton nazareth 2020년 8월 31일
댓글: Rik 2020년 8월 31일
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

채택된 답변

Rik
Rik 2020년 8월 31일
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
James Tursa
James Tursa 2020년 8월 31일
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 2020년 8월 31일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Fortran with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by