Clear Filters
Clear Filters

how can I convert fortran and C++ to matlab

2 views (last 30 days)
Oluwaseyi Aliu
Oluwaseyi Aliu on 12 Jul 2019
Answered: Ben Barrowes on 12 Jul 2019
how can I convert fortran and C++ to matlab

Answers (1)

Ben Barrowes
Ben Barrowes on 12 Jul 2019
If you have more fortran code to convert to matlab code in the future, try f2matlab. F2matlab expects fortran code to be in f90 format (with no goto's), so use Alan Miller's to_f90 or Mike Metcalf's convert.f90 to get the code into f90 format, and Alfasoft's plusfort spag to get rid of around 70% of the goto's. If there are too many goto's remaining to refactor by hand, my remgoto can refactor the rest.

Categories

Find more on Fortran with 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!