Sign in

Not a member? | Forgot your Password?

Search matlab

Search tips

Subscribe to matlab

Search tips

Free PDF Downloads

A Quadrature Signals Tutorial: Complex, But Not Complicated

Understanding the 'Phasing Method' of Single Sideband Demodulation

Complex Digital Signal Processing in Telecommunications

Introduction to Sound Processing

C++ Tutorial

Introduction of C Programming for DSP Applications

Fixed-Point Arithmetic: An Introduction

Cascaded Integrator-Comb (CIC) Filter Introduction

Discussion Groups

FIR Filter Design Software

See Also

Embedded SystemsFPGA

Discussion Groups | Matlab DSP | Fortran to matlab source code conversion

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

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







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