How to create an executable .exe file from a .m file

前端 未结 8 1611
逝去的感伤
逝去的感伤 2020-11-30 04:46

I was wondering if there is a way to create a \'.exe\' file from \' .m\' file in MATLAB, such that it can be run in machine which does not have MATLAB (like it can be done

8条回答
  •  半阙折子戏
    2020-11-30 05:12

    It used to be possible to compile Matlab to C with older versions of Matlab. Check out other tools that Matlab comes with.

    Newest Matlab code can be exported as a Java's jar or a .Net Dll, etc. You can then write an executable against that library - it will be obfuscated by the way. The users will have to install a freely available Matlab Runtime.

    Like others mentioned, mcc / mcc.exe is what you want to convert matlab code to C code.

提交回复
热议问题