2015-10-14 58 views
0

我需要的参数调用TCL脚本(壳)与双引号构建字符串:无法在MATLAB

'adsp2_ia.exe -T -t "C:/build_tst.tcl filenm Release"' 

这就需要在MATLAB中调用。

我曾尝试以下在MATLAB:

cmd1 = 'adsp2_ia.exe -T -t ''"C:/build_tst.tcl filenm Release''"' 
system(cmd) 

给出了错误:

couldn't read file
"'C:/build_tst.tcl":
no such file or directory

我在哪里错了?
感谢
sedy

回答

0

有内部太多的单引号,试试这个:

cmd = 'adsp2_ia.exe -T -t "C:/build_tst.tcl filenm Release"' 
system(cmd) 
+0

@PauAl这是愚蠢的我不要那样做。后来我做得正确,并试图删除我的问题,但我的探险家被绞死。无论如何,谢谢你。 – user915783

+0

不用担心 – PauAI