为什么我的matlab可执行文件花费的时间比通过matlab命令执行的时间多window

Why my matlab executable file takes more time than execution time through matlab command window

我已经使用 Matlab 创建了一个可执行文件,该文件使用 MCR 运行,但与 Matlab 命令终端相比需要更多时间。

如果您第一次启动可执行文件,MATLAB 运行加载时间可能需要几秒钟。如果您第二次启动它,运行时间应该缓存在 RAM 中,并且它应该 运行 更快,就像在 MATLAB 中一样。