How to convert matlab code to c or cpp code?

How to convert matlab code to c or cpp code?

Post by kuma » Thu, 19 Jul 2007 16:20:01


Hi,

I am basically a c programmer, and very new to matlab. Will the matlab
compiler generate c/cpp equivalent code to matlab code?

I tried with some of my files. Just it is generating a c file with
mail and interanlly calling the matlab code. For example

_retval = mclMain(_mcr_inst, argc, argv, "myFunction", 1);

Where myFunction is the matlab file. I didn't observe any code of my
function inside this c file.

I tried to generate one static dll by using some files and came to
know that i am not getting the entire source code for my files. Just
getting the export file which gives the functions that are being
exposed by that dll and header file giving the function syntax.

Is it possible to get the entire code conversion? This will be very
useful to me. May be this is a stupid quiestion, but i would like to
know the scope.

In the matlab we can get the source code for various functions in
matlab code. Like wise can i get the source code in c?

Please can anybody help me?

Thanks & Regards,
Kumar
 
 
 

How to convert matlab code to c or cpp code?

Post by Krishn » Fri, 20 Jul 2007 19:22:30


Maybe Real Time Workshop (RTW) helps.
http://www.yqcomputer.com/

Krishna
http://www.yqcomputer.com/