Convert C codes to Matlab Codes

Vila

Vila

@vila-4EJWAr Oct 25, 2024
Hiiii everybody,

How do i change or convert C codes to Matlab codes? Is there any software that can convert C codes to Matlab codes? I have lots of C codes here, but i need them all in Matlab codes form.

Thank you...

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Vila

    Vila

    @vila-4EJWAr Nov 7, 2008

    Hiiii everybody,

    How do i change or convert C codes to Matlab codes? Is there any software that can convert C codes to Matlab codes? I have lots of C codes here, but i need them all in Matlab codes form.

    Thank you...
  • anuragh27crony

    anuragh27crony

    @anuragh27crony-mb8hAE Nov 10, 2008

    there's no need to convert the C-Code into Matlab...

    as far as i know, we can run C-code directly in Matlab... I don't know exactly but need to check it once.... :smile:
  • Vila

    Vila

    @vila-4EJWAr Nov 17, 2008

    Hiiiii,

    Yes its done by using the MEX file. But i dont know how to use the MEX file inside C codes to make it run in Matlab. Besides the header file, where else do we need to include the MEX file, and when to include it? and also how to use the MEX file?

    Thankss...
  • akshu

    akshu

    @akshu-k29zrK Jan 30, 2009

    hi, all
    anybody help me out regarding Convert C codes to Matlab Codes.

    How do i change or convert C codes to Matlab codes? Is there any software that can convert C codes to Matlab codes?


    Thanks..
  • durga ch

    durga ch

    @durga-TpX3gO Jan 31, 2009

    I had this thought that MATLAB follows the syntax of C codes.
    I found this out from mathworks.com
    Lokks like all you need is a matlab C complier and then changing the main() function in your C code to mexfunction and remainging all should work as the syntax is same

    look for more! 😀

    #-Link-Snipped-#

    #-Link-Snipped-#