Is it possible to execute compiled code both within and out of MATLAB environment?

后端 未结 2 1580
太阳男子
太阳男子 2020-12-21 10:50

Let me explain what I am trying to do. I have an application coded in Matlab and I would like to provide it to both Matlab users and non-Matlab users. So you would say : Ju

2条回答
  •  醉梦人生
    2020-12-21 11:06

    You can use eval in deployed applications. You can also read .m files, since they are nothing but text. So, read the file, evaluate line by line, and there you go, you have an ability to use 3d party script .m files in your compiled Matlab program.

    You will not be able to use functions in this way, only scripts.

    The only thing I am not sure is whether it's legal. I can't guarantee that, you will have to contact Mathworks by yourself.

提交回复
热议问题