How to convert Matlab code into C code

How to convert Matlab code into C code

Post by Shailesh P » Fri, 09 May 2008 15:15:13


I want to convert my matlab code into C code. Please let me know how
to do this? I am also watching for any help manual regarding this.

Shailesh Patel

1. converting c++ code to Matlab code using Matlab 9

2. How to convert matlab code to c or cpp code?


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,

3. MATLAB algorithm to MATLAB function code or C code

4. request for matlab code-3D spiht image compression MATLAB CODE

5. calling matlab code from Visual Studio & converting standard c types to matlab

6. problems with code to convert ncs file in matlab under Matlab R14(2004)

7. Decompiler idea: convert asm to .net byte code, then convert further to C# code.

8. gold codes (or walsh codes) for matlab

9. C code from MATLAB code

10. fortran code into matlab code

11. How to Execute MATLAB code with Code Composer Studio

12. how to embed matlab code into C++ code for simulations

13. space-time coding project(matlab code)

14. How to pass the variables between matlab code and C++ code