爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 13339|回复: 13

[源程序] 介绍将fortran程序转为matlab程序的探索——f2matlab

[复制链接]

新浪微博达人勋

发表于 2013-6-9 20:21:27 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
本帖最后由 hillside 于 2013-6-9 20:27 编辑

http://www.mathworks.com/matlabc ... /view_thread/258810

Description

f2matlab is a fortran90 to Matlab code converter written in Matlab. It accepts fortran90 subroutines or functions and outputs a Matlab *.m file. Most recent version at Matlab's File Exchange.

f2matlab Web Site


http://www.mathworks.com网友间的相关讨论:


Thread Subject:  Fortran to Matlab conversion

Subject: Fortran to Matlab conversionFrom: William ChenDate: 18 Aug, 2009 18:30:38Message: 1 of 5
Reply to this message
Add author to My Watch List
View original format
Flag as spam

How to convert .for (Fortran file) to .m (Matlab file)?
Subject: Fortran to Matlab conversionFrom: Bruno LuongDate: 18 Aug, 2009 18:40:20Message: 2 of 5
Reply to this message
Add author to My Watch List
View original format
Flag as spam

"William Chen" <william.chen.ctr@edwards.af.mil> wrote in message <h6es0d$kmv$1@fred.mathworks.com>...
> How to convert .for (Fortran file) to .m (Matlab file)?

For lazy thus poor job, http://sourceforge.net/projects/f2matlab/(意为:这是偷懒但是不很理想的转换选择)

For a better quality, seat down and do it manually.

Bruno
Subject: Fortran to Matlab conversionFrom: benbarrowesDate: 18 Aug, 2009 23:45:29Message: 3 of 5
Reply to this message
Add author to My Watch List
View original format
Flag as spam

On Aug 18, 2:30 pm, "William Chen" <william.chen....@edwards.af.mil>
wrote:
> How to convert .for (Fortran file) to .m (Matlab file)?


Hi William,

I wrote f2matlab. f2matlab will do 90-100% of the work for you, but
you typically have to clean it up and optimize after it converts the
code.

I do consulting to convert fortran to matlab files if you have a lot
of code, don't have time to do it yourself, want someone to refactor/
update the fortran code, need some optimization after the conversion,
etc.

Let me know if I can help,
Ben Barrowes
Subject: Fortran to Matlab conversionFrom: Jaiveer SerwaDate: 5 Sep, 2009 10:50:18Message: 4 of 5
Reply to this message
Add author to My Watch List
View original format
Flag as spam

On Aug 19, 4:45 am, benbarrowes <benbarro...@gmail.com> wrote:
> On Aug 18, 2:30 pm, "William Chen" <william.chen....@edwards.af.mil>
> wrote:
>
> > How to convert .for (Fortran file) to .m (Matlab file)?
>
> Hi William,
>
> I wrote f2matlab. f2matlab will do 90-100% of the work for you, but
> you typically have to clean it up and optimize after it converts the
> code.
>
> I do consulting to convert fortran to matlab files if you have a lot
> of code, don't have time to do it yourself, want someone to refactor/
> update the fortran code, need some optimization after the conversion,
> etc.
>
> Let me know if I can help,
> Ben Barrowes

Can you help me ?
please tell how to convert the Fortran code into matlab code
Thanks
Subject: Fortran to Matlab conversionFrom: benbarrowesDate: 26 Oct, 2009 16:43:28Message: 5 of 5
Reply to this message
Add author to My Watch List
View original format
Flag as spam

On Sep 5, 6:50 am, Jaiveer Serwa <jaiveer2...@gmail.com> wrote:
> On Aug 19, 4:45 am, benbarrowes <benbarro...@gmail.com> wrote:
>
>
>
> > On Aug 18, 2:30 pm, "William Chen" <william.chen....@edwards.af.mil>
> > wrote:
>
> > > How to convert .for (Fortranfile) to .m (Matlab file)?
>
> > Hi William,
>
> > I wrote f2matlab. f2matlab will do 90-100% of the work for you, but
> > you typically have to clean it up and optimize after it converts the
> > code.
>
> > I do consulting to convertfortranto matlab files if you have a lot
> > of code, don't have time to do it yourself, want someone to refactor/
> > update thefortrancode, need some optimization after theconversion,
> > etc.
>
> > Let me know if I can help,
> > Ben Barrowes
>
> Can you help  me ?
> please tell how to convert theFortrancode into matlab code
> Thanks

Jaiveer,

This is Ben Barrowes. If you need some fortran to matlab conversion
help, use f2matlab and read the README file. If you have any further
questions, feel free to email me.

bb  


f2matlab_3.0.zip

1.28 MB, 下载次数: 46, 下载积分: 金钱 -5

评分

参与人数 1金钱 +10 贡献 +2 收起 理由
Aires + 10 + 2

查看全部评分

密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-6-9 23:40:28 | 显示全部楼层
貌似不错啊,难道是把fortran的代码直接转化成matlab代码?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2013-6-9 23:46:11 | 显示全部楼层

我没有试过。不过,正像讨论中说的,转换工具只是辅助,最终还要靠手工校正。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-6-9 23:53:12 | 显示全部楼层
hillside 发表于 2013-6-9 23:46
我没有试过。不过,正像讨论中说的,转换工具只是辅助,最终还要靠手工校正。

恩恩,估计还得自己校正一下
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-6-10 08:48:21 | 显示全部楼层
这个需要时可以自己试一下
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-6-10 09:17:22 | 显示全部楼层
能有一些例子教程就好了,英文不懂。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-6-10 11:55:27 | 显示全部楼层
应该介绍如何实现
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-6-11 00:15:45 | 显示全部楼层
感觉还可以~~不过要是报错的话,就束手无策了~~
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-11-18 20:02:42 | 显示全部楼层
用过matlab,但从没用过Fortran,初学者看看
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-11-25 21:30:52 | 显示全部楼层
多谢分享,抓紧看看
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表