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

后端 未结 2 1581
太阳男子
太阳男子 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.

    0 讨论(0)
  • 2020-12-21 11:21

    Matlab doesn't have inbuilt functionality to do this, and, detecting whether someone has Matlab installed or not varies greatly depending on operating system.

    0 讨论(0)
提交回复
热议问题