【问题标题】:Path with spaces in Matlab errorMatlab错误中带有空格的路径
【发布时间】:2014-02-16 05:26:34
【问题描述】:

我正在尝试执行以下几行

command ='C:\Program Files (x86)\MATLAB\R2010a\bin\matlab -wait -nodesktop -nosplash -r wrapper';
[status, output] = system(command);

但我收到一条错误消息:

' 'C:\Program' is not recognized as an internal or external command,
    operable program or batch file.'

在我看来,空格正在产生错误,如它仅捕获'C:\ Program'的错误所示,所以有人可以建议吗?

【问题讨论】:

    标签: matlab matlab-compiler


    【解决方案1】:

    尝试将路径用双引号括起来.. 如:

    “C:\Program Files (x86)\MATLAB....”

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-27
      • 2012-10-29
      • 2012-08-30
      • 1970-01-01
      • 2013-03-06
      • 2015-06-18
      相关资源
      最近更新 更多