Fortran77のMEX化に関して

5 views (last 30 days)
O.E
O.E on 14 Jun 2018
Commented: O.E on 28 Jun 2018
Fortran77ファイルをMEX化しようと考え、
mex 〇〇.f
とコマンドラインで入力したところ
サポートされているコンパイラまたは SDK が見つかりません。オプションについて は、 http://www.mathworks.com/support/compilers/R2016b/win64.html を参照してください。
とエラーが表示されました。これは、FortranのコンパイラをインストールしてMATLABに紐づけ?すればよいのでしょうか。
  1 Comment
michio
michio on 14 Jun 2018
URLをハイパーリンク化いたしました。

Sign in to comment.

Accepted Answer

michio
michio on 14 Jun 2018
おっしゃる通りです。使用されているMATLABバージョンで対応している Fortran コンパイラーをインストールし、MATLAB上で
mex -setup FORTRAN
と実行して頂ければ設定完了です。
  3 Comments
michio
michio on 14 Jun 2018
Gfortran は残念ながら対応しておりません。
にある通り、Fortranに関しては以下の3つが対応コンパイラとなります。
  • Intel Parallel Studio XE 2016 for Fortran 3
  • Intel Parallel Studio XE 2015 for Fortran 3
  • Intel Visual Fortran Composer XE 2013 3
O.E
O.E on 28 Jun 2018
ありがとうございます。

Sign in to comment.

More Answers (0)

Categories

Find more on Fortran からの 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!