Tips for converting this piece of f77 source code to Matlab

2 ビュー (過去 30 日間)
Stanley Kubrick
Stanley Kubrick 2014 年 11 月 11 日
回答済み: Star Strider 2014 年 11 月 11 日
The code attached is a piece of from a publicly available FORTRAN source (the complete source code is found here ). I was wondering if anyone could direct me on how to convert it to Matlab code. I've tried to convert it using f2matlab, however I can't convert it to f90 (which f2matlab requires).
The Matlab file I've attached is the conversion I've got so far, but I get an error with "while(more)".
Any help would be greatly appreciated.

回答 (3 件)

Stanley Kubrick
Stanley Kubrick 2014 年 11 月 11 日
Source code

Stanley Kubrick
Stanley Kubrick 2014 年 11 月 11 日
Matlab Conversion so far

Star Strider
Star Strider 2014 年 11 月 11 日
The matrix exponential function expm and matrix left divide function (\) mldivide (to use instead of the explicit inverse) are your friends here. I’m not certain what you’re doing with your FORTRAN subroutines, so I can’t comment further.

カテゴリ

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