找到你要的答案

Q:Powershell2 call from matlab is blocked

Q:从MATLAB powershell2呼叫被阻塞

The wierdest thing!

Powershell.exe Get-Help is working from cmd as expected and i get back the cmd prompt.

Now, calling the exact command from Matlab system command system('Powershell.exe Get-Help');

is blocked and waiting for hitting the return key.

The even more strange thing is that it happens only on computer with ps2 but on other pc with ps3 it is working just fine.

Any reason / workarounds are welcome

最怪异的事情!

Powershell.exe得到的帮助从CMD为预期的工作和我回到cmd提示。

Now, calling the exact command from Matlab system command system('Powershell.exe Get-Help');

被阻塞并等待回车键。

更奇怪的是它只发生在电脑和PS2的但在其他PC和PS3就好了。

任何原因/解决方法是受欢迎的

matlab  powershell-v2.0  powershell-v3.0