大众信息网

我用matlab编写了一个小软件,已生成exe文件。现在想脱离matlab运行可执行程序,已安装文件名为MCRInstall

答案:5  mip版
解决时间 2021-01-17 12:07
  • 提问者网友:萌城姑凉
  • 2021-01-16 18:35
我用matlab编写了一个小软件,已生成exe文件。现在想脱离matlab运行可执行程序,已安装文件名为MCRInstaller.exe。在我的电脑里,运行该exe文件没有问题。
但是现在在其它电脑上使用时,运行exe文件,出现了如下错误提示:??undefined function or variable 'matlabrc'

迫切希望大家能帮我解答这个棘手的问题,谢谢大家!
matlab论坛里发帖提问,根本就没人回答!google上也有人遇到过同样问题,可惜没人回答解决方案。
http://www.mathworks.com/matlabcentral/newsreader/view_thread/237595
Prior to applying the pragma, I was also running the same executable with the same CTF archive embedded into it on two different machines.
On one machine, the .exe ran fine and there were no complaints of matlabrc being missing, so obviously there was no problem finding it in the CTF archive.
However, on the second machine, the .exe crashed complaining that matlabrc was undefined.
It baffles me why the pragma would make matlabrc locateable when according to the first machine, it was never missing.
最佳答案
  • 二级知识专家网友:輓畱嶼赱
  • 2021-01-16 19:51
那么有什么问题呢?
MCR安装好之后(保证和你原来的MATLAB安装位置一致),然后就可以运行你的exe了,不过启动很慢,你双击之后,等上一两分钟,如果还没有启动,那么就是出错了。
全部回答
  • 1楼网友:輓揂隨風
  • 2021-01-16 23:00
也是新手
  • 2楼网友:輓畱嶼赱
  • 2021-01-16 21:35
你可以去Matlab 中文论坛看一看啊!
  • 3楼网友:可惜感動不是心動
  • 2021-01-16 21:10
可能其他的电脑上没有相关库的支持!
  • 4楼网友:回眸只為那壹抹淺笑
  • 2021-01-16 21:00
不能这么做,matlab生成的dll文件一定要mcr运行
我要举报
如以上问答内容为低俗/色情/暴力/不良/侵权的信息,可以点下面链接进行举报,我们会做出相应处理,感谢你的支持!
点此我要举报以上问答信息
推荐资讯