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

前端 未结 8 1614
逝去的感伤
逝去的感伤 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:33

    mcc -?
    

    explains that the syntax to make *.exe (Standalone Application) with *.m is:

     mcc -m  
    

    For example:

    mcc -m file.m
    

    will create file.exe in the curent directory.

提交回复
热议问题