简体   繁体   English

如何在cygwin中执行MATLAB脚本?

[英]How to execute a MATLAB script in cygwin?

As the title of the question says, I would like to call a matlab script from the cygwin shell in windows 7. Is there a way to do so? 就像问题的标题所说的那样,我想从Windows 7的cygwin外壳中调用matlab脚本。有没有办法做到这一点? I could not find anything about it either here or anywhere else online. 在这里或其他任何地方,我都找不到任何有关它的信息。

Edit: I do not whish to call a unix command from within matlab, but rather the other way around. 编辑:我不希望从matlab中调用unix命令,而是相反。 Eg I want to do something like 例如,我想做类似的事情

$ matlab MatScript.m

from the cygwin shell. 来自cygwin外壳。

The command matlab -r MathScript.m is probably what you are looking for. 您正在寻找的命令matlab -r MathScript.m And if it doesn't work, leave the file extension (".m") out. 如果不起作用,请保留文件扩展名(“ .m”)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM