CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   MATLAB FORTRAN (http://www.cfd-online.com/Forums/main/13580-matlab-fortran.html)

Ally June 5, 2007 13:08

MATLAB FORTRAN
 
I have written a (large) MATLAB program on design of a thermo-fluid system, but I now need to make it executable (what is called "making stand-alone executable files from m-files"). This acts same as compilation in FORTRAN. It seems that Matlab compiler is not part of the MATLAB package and I need to pay for it separately! If this is true, what is the best that I can do (other than buying the complier)? Inverting the program to FORTRAN will also take several weeks.

Please give me any advice you think it might be helpful.

Ally

jinwon June 5, 2007 13:24

Re: MATLAB FORTRAN
 
I strongly recommend you to use the fortran instead of matlab as an engineer. I was also a matlab user before. But most of existing codes and code descriptions in the CFD area have been written in the fortran syntax.

Ask the matlab user community available at www.mathwork.com

javaid June 10, 2007 01:33

Re: MATLAB FORTRAN
 
Matlab includes lcc (a C compiler) on Window plateform and free C compilers are available for linux. You may try som fortran to C converter (f2c) then use free compiler to create stand alone applications. BUT you must write your program in FORTRAN first.

king July 3, 2007 18:01

Re: MATLAB FORTRAN
 
Hello All,

I have a FORTRAN program and I need to convert this to a matlab program, Can anyone let me know as how do i accomplish this task? I'm pretty new to both fortran and matlab and any help in this regrad is greatly APPRECIATED.

javaid July 12, 2007 03:51

Re: MATLAB FORTRAN
 
It is possible to run a FORTRAN program through Matlab using MEX file. Please examine Matlab docs.


All times are GMT -4. The time now is 17:33.