Sign in

username or email:

password:



Not a member?
Forgot your password?

Search matlab



Search tips

Subscribe to matlab



Ads

Discussion Groups

See Also

Embedded SystemsFPGA

Discussion Groups | Matlab DSP | 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...

  

Post a new Thread



Is this thread worth a thumbs up?

0

Fortran to matlab source code conversion - raghu330 - Jan 16 4:04:00 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



______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

RE: Fortran to matlab source code conversion - Jeff Winter - Jan 16 16:31:00 2002

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
_____________________________________
/groups.php3



______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )