convert a fortran program into matlab program

convert a fortran program into matlab program

Post by sofi » Sun, 30 Jan 2011 23:52:03


Hello, I want to ask if there is a way in order to convert some fortran programs into matlab codes.
 
 
 

convert a fortran program into matlab program

Post by sofi » Sun, 30 Jan 2011 23:55:06

Hello, I want to ask if there is a way in order to convert fortran programs in matlab programs.Thank you

 
 
 

convert a fortran program into matlab program

Post by Jan Simo » Mon, 31 Jan 2011 00:20:05

Dear Sofia,


I do not know a direct conversion tool. The best idea will be to create a fortran-mex gateway, which calls the fortran function directly from Matlab.

Kind regards, Jan
 
 
 

convert a fortran program into matlab program

Post by James Turs » Mon, 31 Jan 2011 01:40:03


You can try this tool by Ben Barrows on the FEX:

http://www.yqcomputer.com/

James Tursa
 
 
 

convert a fortran program into matlab program

Post by Jim Dow » Mon, 31 Jan 2011 03:00:04

Line-by-line.
 
 
 

convert a fortran program into matlab program

Post by sofi » Mon, 31 Jan 2011 19:10:04


what do you mean?
 
 
 

convert a fortran program into matlab program

Post by sofi » Mon, 31 Jan 2011 19:14:04


Thank you very much but could you explain how to use it?I mean do I have to install it?
 
 
 

convert a fortran program into matlab program

Post by Nasser M. » Mon, 31 Jan 2011 19:15:54


my guess, is to do it by hand.

i.e. look at the Fortran code, go line by line, and convert it to
Matlab.

Sometimes, this is the best way to do it. If the program is small, say
less than 1,000 lines or so.

--Nasser