poster
2019-12-10, 16:49
在我看来,有两种方法可以在批处理模式下运行Matlab:
第一个:
unset DISPLAY matlab > matlab.out 2>&1 &1 重定向 (http://en.wikipedia.org/wiki/Redirection_(computing)#Redirecting_to_and_from_the_standard_file_handles)到文件matlab.out 。 </p>然后,它使用Heredoc (http://en.wikipedia.org/wiki/Here_document)方式将输入传递给MATLAB(这不是MATLAB特有的,它通常是将多行作为输入传递给命令行程序的方法)。
语法是
第一个:
unset DISPLAY matlab > matlab.out 2>&1 &1 重定向 (http://en.wikipedia.org/wiki/Redirection_(computing)#Redirecting_to_and_from_the_standard_file_handles)到文件matlab.out 。 </p>然后,它使用Heredoc (http://en.wikipedia.org/wiki/Here_document)方式将输入传递给MATLAB(这不是MATLAB特有的,它通常是将多行作为输入传递给命令行程序的方法)。
语法是