- Convert the FORTRAN code to MATLAB line by line going through the code.
- If problem is known, try knowing the inbuilt functions, toolboxes in MATLAB.
How to convert from FORTRAN TO MATLAB
140 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Dear all,
Please am working on a project and now found a FORTRAN code to speed up my research but I having been using MATLAB and so, I need to convert the newly found FORTRAN code to MATLAB. Please kindly help me out on this conversion or give a detail explanation on how best I can convert from FORTRAN to MATLAB. The FORTRAN code is in the attachment. Thanks in anticipation!
1 commentaire
KSSV
le 3 Oct 2020
Options:
Réponses (3)
Ameer Hamza
le 3 Oct 2020
I don't think you can automatically convert your FORTRAN code to MATLAB; however, you can compile it as mex file and use it in MATLAB.
0 commentaires
Ben Barrowes
le 3 Oct 2020
My f2matlab can do this kind of conversion. Please download from the file exchange and give it a try. You will have to split the code up into the five files in the pdf and run f2matlab on each file.
I might also do a free conversion if I get time, but in any case, if you run into trouble PM me.
9 commentaires
roborrr
le 23 Août 2023
HI Ben Barrowes, Thank you so much for responding so kindly to my question. I'm just starting to study this topic and some questions arose that I could not solve on my own from the instructions you suggested. With your permission, I will later send questions in a personal mail that I have not resolved, after I try to solve it myself.
Kuan-Lin Chen
le 22 Août 2022
Program random
implicit double precision (a-h,o-z)
character(10) zinputname
parameter (nd1=501,nd2=250,nd3=257,nd4=1025)
dimension rff(nd1,nd1),x(nd1),y(nd1),s(nd2,nd2),per1(nd3,nd4)
dimension w1(nd2),w2(nd2),w11(nd2),w22(nd2),xx(nd2,nd2)
dimension h1(nd1),h2(nd1),v1(nd3),v2(nd4),per(nd3,nd4),ll(5)
dimension phi(nd2,nd2),f1(nd3),delta1(nd2,nd2),delta2(nd2,nd2)
0 commentaires
Voir également
Catégories
En savoir plus sur Fortran with MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!