<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171495</link>
    <title>MATLAB Central Newsreader - File conversion: fortran to matlab</title>
    <description>Feed for thread: File conversion: fortran to matlab</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 24 Jun 2008 23:54:05 -0400</pubDate>
      <title>File conversion: fortran to matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171495#439380</link>
      <author>Sneha </author>
      <description>Hello&lt;br&gt;
&lt;br&gt;
I have gone through google search, other forums and similar&lt;br&gt;
message posted here also. I have not got really a way to&lt;br&gt;
convert f90 file to matlab file. Its really a big file.&lt;br&gt;
Can anyone please help me?&lt;br&gt;
&lt;br&gt;
Thanks.</description>
    </item>
    <item>
      <pubDate>Wed, 25 Jun 2008 01:19:05 -0400</pubDate>
      <title>Re: File conversion: fortran to matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171495#439386</link>
      <author>Matt Fig</author>
      <description>I just did it today, on a 300 line file, by hand.  If you&lt;br&gt;
know Matlab, Fortran isn't that much different I don't&lt;br&gt;
think.  Just copy and paste, do some rearranging and&lt;br&gt;
relabeling, and you're done.  Really, I have no Fortran&lt;br&gt;
training at all and I figured it out in less than an hour.  &lt;br&gt;
&lt;br&gt;
I did have to use the online Fortran reference at IBM a&lt;br&gt;
couple of times to find out the syntax of the IF statements,&lt;br&gt;
DO loops, etc.  It still wasn't that bad.</description>
    </item>
    <item>
      <pubDate>Wed, 25 Jun 2008 03:18:50 -0400</pubDate>
      <title>Re: File conversion: fortran to matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171495#439390</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Sneha &quot; &amp;lt;smithpamola@yahoo.com&amp;gt; wrote in message &lt;br&gt;
news:g3s1et$g8e$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hello&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have gone through google search, other forums and similar&lt;br&gt;
&amp;gt; message posted here also. I have not got really a way to&lt;br&gt;
&amp;gt; convert f90 file to matlab file. Its really a big file.&lt;br&gt;
&amp;gt; Can anyone please help me?&lt;br&gt;
&lt;br&gt;
As an alternative to converting over the file, you may be able to write a &lt;br&gt;
wrapper to make this into a MEX-file:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/bp_kqh7.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/bp_kqh7.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
The third and fifth items could be useful for you.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Wed, 25 Jun 2008 23:22:02 -0400</pubDate>
      <title>Re: File conversion: fortran to matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171495#439522</link>
      <author>James Tursa</author>
      <description>&quot;Sneha &quot; &amp;lt;smithpamola@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g3s1et$g8e$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hello&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have gone through google search, other forums and &lt;br&gt;
similar&lt;br&gt;
&amp;gt; message posted here also. I have not got really a way to&lt;br&gt;
&amp;gt; convert f90 file to matlab file. Its really a big file.&lt;br&gt;
&amp;gt; Can anyone please help me?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks.&lt;br&gt;
&lt;br&gt;
Converting Fortran to MATLAB can sometimes be &lt;br&gt;
straightforward, but a *lot* of Fortran stuff has no &lt;br&gt;
direct translation to MATLAB, particularly some of the &lt;br&gt;
newer F90/F95 stuff. You would need to understand &lt;br&gt;
Fortran's pass-by-reference behavior (Fortran purists, &lt;br&gt;
don't bite me on this please!) vs MATLAB's pass-by-value &lt;br&gt;
for function calls, etc. when doing the translation. If &lt;br&gt;
you don't know Fortran very well this could be a rather &lt;br&gt;
large task for you to undertake. And if you have a very &lt;br&gt;
big file as you indicate, then I would take Steven Lord's &lt;br&gt;
suggestion and look into making it a mex routine. Several &lt;br&gt;
people on this ng can help you with that if care to go &lt;br&gt;
that route. Do you have a Fortran compiler available?&lt;br&gt;
&lt;br&gt;
James Tursa</description>
    </item>
  </channel>
</rss>

