如果文件名为 a.m 则在a.m目录下执行指令 matlab -nodesktop -nosplash -r a 只用文件名a,不能添加.m 转载于:https://www.cnblogs.com/klitech/p/8459647.html