当MATLAB调用Internet Explorer时,它看起来无法正确处理特殊字符&
。然后我尝试使用转义%26
,但它没有帮助。
还有其他想法吗?
system('start http://finance.yahoo.com/q/ta?s=MSFT&t=1m&l=on&z=l&q=l&p=e5%2Ce10%2Ce20&a=vm&c=')
't' is not recognized as an internal or external command,
operable program or batch file.
'l' is not recognized as an internal or external command,
operable program or batch file.
'z' is not recognized as an internal or external command,
operable program or batch file.
'q' is not recognized as an internal or external command,
operable program or batch file.
'p' is not recognized as an internal or external command,
operable program or batch file.
'a' is not recognized as an internal or external command,
operable program or batch file.
'c' is not recognized as an internal or external command,
operable program or batch file.
答案 0 :(得分:1)
这是因为Windows cmd.exe将&
解释为命令分隔符 - 因此显示所有这些't' is not recognized...
错误,因为Windows将&
后面的字符解释为新命令。您需要使用&
字符转义^
,如下所示:
system('start http://finance.yahoo.com/q/ta?s=MSFT^&t=1m^&l=on^&z=l^&q=l^&p=e5%2Ce10%2Ce20^&a=vm^&c=');