【发布时间】:2010-01-04 18:17:13
【问题描述】:
基本上我有一个m 文件,看起来像
function Z=myfunc()
% Do some calculations
dlmwrite('result.out',Z,',');
end
我只想从命令行执行它而不进入 MATLAB。我尝试了几个选项(-nodisplay、-nodesktop、-nojvm、-r 等),但都没有奏效。我最终进入 MATLAB,必须输入“quit”才能退出。
解决办法是什么?
【问题讨论】:
-
来自 MathWorks:[如何在 UNIX 机器上以批处理模式运行 MATLAB? ](mathworks.com/support/solutions/en/data/1-15HNG/index.html)
标签: linux command-line matlab