Fortran to matlab source code conversion

Started by raghu330 January 16, 2002
Hello All!

I have around 250+ fortran files. and I want to convert them to
MATLAB. Is there any way, this can be done..
Its easy to generate C/C++ code from MATLAB scripts and vice-versa.
but is there a sthg similar for FORTRAN..

thank you all in advance

Cheers
Raghu



You can call your own C or Fortran subroutines from MATLAB as if they were
built-in
functions. MATLAB callable C and Fortran programs are referred to as
MEX-files.
MEX-files are dynamically linked subroutines that the MATLAB interpreter can
automatically load and execute.

MEX-files have several applications:

Large pre-existing C and Fortran programs can be called from MATLAB without
having to be rewritten as M-files.
Bottleneck computations (usually for-loops) that do not run fast enough in
MATLAB can be recoded in C or Fortran for efficiency.

MEX-files are not appropriate for all applications. MATLAB is a
high-productivity system
whose specialty is eliminating time-consuming, low-level programming in
compiled
languages like Fortran or C. In general, most programming should be done in
MATLAB.
Don't use the MEX facility unless your application requires it.

Check out the documentation in the external interfaces section either in the
matlab help section or at the Mathworks web site (www.mathworks.com).
-----Original Message-----
From: raghu330 [mailto:]
Sent: Wednesday, January 16, 2002 4:05 AM
To:
Subject: [matlab] Fortran to matlab source code conversion Hello All!

I have around 250+ fortran files. and I want to convert them to
MATLAB. Is there any way, this can be done..
Its easy to generate C/C++ code from MATLAB scripts and vice-versa.
but is there a sthg similar for FORTRAN..

thank you all in advance

Cheers
Raghu
_____________________________________
Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you
want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:

To Post:

To Leave:

Archives: http://www.yahoogroups.com/group/matlab

More DSP-Related Groups: http://www.dsprelated.com/groups.php3

">http://docs.yahoo.com/info/terms/


You can call your own C or Fortran subroutines from MATLAB as if they were
built-in
functions. MATLAB callable C and Fortran programs are referred to as
MEX-files.
MEX-files are dynamically linked subroutines that the MATLAB interpreter can
automatically load and execute.

MEX-files have several applications:

Large pre-existing C and Fortran programs can be called from MATLAB without
having to be rewritten as M-files.
Bottleneck computations (usually for-loops) that do not run fast enough in
MATLAB can be recoded in C or Fortran for efficiency.

MEX-files are not appropriate for all applications. MATLAB is a
high-productivity system
whose specialty is eliminating time-consuming, low-level programming in
compiled
languages like Fortran or C. In general, most programming should be done in
MATLAB.
Don't use the MEX facility unless your application requires it.

Check out the documentation in the external interfaces section either in the
matlab help section or at the Mathworks web site (www.mathworks.com).
-----Original Message-----
From: raghu330 [mailto:]
Sent: Wednesday, January 16, 2002 4:05 AM
To:
Subject: [matlab] Fortran to matlab source code conversion Hello All!

I have around 250+ fortran files. and I want to convert them to
MATLAB. Is there any way, this can be done..
Its easy to generate C/C++ code from MATLAB scripts and vice-versa.
but is there a sthg similar for FORTRAN..

thank you all in advance

Cheers
Raghu
_____________________________________
Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you
want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:

To Post:

To Leave:

Archives: http://www.yahoogroups.com/group/matlab

More DSP-Related Groups: http://www.dsprelated.com/groups.php3

">http://docs.yahoo.com/info/terms/


Hello All!

I have around 250+ fortran files. and I want to convert them to
MATLAB. Is there any way, this can be done..
Its easy to generate C/C++ code from MATLAB scripts and vice-versa.
but is there a sthg similar for FORTRAN..

thank you all in advance

Cheers
Raghu