Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: File conversion: fortran to matlab
Date: Wed, 25 Jun 2008 23:22:02 +0000 (UTC)
Organization: Boeing
Lines: 28
Message-ID: <g3ujuq$fon$1@fred.mathworks.com>
References: <g3s1et$g8e$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1214436122 16151 172.30.248.37 (25 Jun 2008 23:22:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 25 Jun 2008 23:22:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 756104
Xref: news.mathworks.com comp.soft-sys.matlab:475876



"Sneha " <smithpamola@yahoo.com> wrote in message 
<g3s1et$g8e$1@fred.mathworks.com>...
> Hello
> 
> I have gone through google search, other forums and 
similar
> message posted here also. I have not got really a way to
> convert f90 file to matlab file. Its really a big file.
> Can anyone please help me?
> 
> Thanks.

Converting Fortran to MATLAB can sometimes be 
straightforward, but a *lot* of Fortran stuff has no 
direct translation to MATLAB, particularly some of the 
newer F90/F95 stuff. You would need to understand 
Fortran's pass-by-reference behavior (Fortran purists, 
don't bite me on this please!) vs MATLAB's pass-by-value 
for function calls, etc. when doing the translation. If 
you don't know Fortran very well this could be a rather 
large task for you to undertake. And if you have a very 
big file as you indicate, then I would take Steven Lord's 
suggestion and look into making it a mex routine. Several 
people on this ng can help you with that if care to go 
that route. Do you have a Fortran compiler available?

James Tursa