Matlab的:从运行命令行的m文件 [英] Matlab: Running an m-file from command-line

查看:765
本文介绍了Matlab的:从运行命令行的m文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设;

我在位置上的m文件:结果
C:\\ M1 \\ M2 \\ M3 \\ mfile.m

I have an m-file at location:
C:\M1\M2\M3\mfile.m

和在MATLAB的exe文件是在这个位置:结果
C:\\ E1 \\ E2 \\ E3 \\ matlab.exe

And exe file of the matlab is at this location:
C:\E1\E2\E3\matlab.exe

我要运行这个M文件用Matlab,通过命令行,例如.bat文件中。我怎样才能做到这一点,是有办法做到这一点?

I want to run this m-file with Matlab, from command-line, for example inside a .bat file. How can I do this, is there a way to do it?

推荐答案

像这样的命令运行m文件成功:

A command like this runs the m-file successfully:

C:\\<在这里长路径> \\ matlab.exe-nodisplay -nosplash -nodesktop -r运行('C:\\<在这里长路径> \\ MFILE。 M');

这篇关于Matlab的:从运行命令行的m文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆