how to use fortran

1 回表示 (過去 30 日間)
Samaneh Arzpeima
Samaneh Arzpeima 2019 年 3 月 11 日
回答済み: Walter Roberson 2019 年 3 月 11 日
Hello
I want to use a script that has a function which its original is in fortran, so I need to have the regarding .m file and the .f90 code in the same folder I guess
Sorry for the very vague question,but is it just enough to have them on the same folder? I have some basic knowledge of Matlab but none in Fortran!
(I need to run "qdyn_okada_kernel.m" in https://github.com/ydluo/qdyn/tree/master/utils/kernel_calc )

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 3 月 11 日
No. You need to use mex to compile the .f90 into a .dll or .mexw64 or .mexa64 or .mexmaci64 . Once you have created the .dll or .mex* file then it needs to be on your MATLAB path somewhere -- not necessarily where the .m is.

カテゴリ

Help Center および File ExchangeFortran with MATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by