Getting user input from python script to matlab.
4 次查看(过去 30 天)
显示 更早的评论
I have a python script that controls an SLM and shows an image until the user press a key. It works just fine when in python.
It's a simple:
input("please input enter key...")
But when I call the python script from matlab it gives me the following error:
Python Error: RuntimeError: input(): lost sys.stdin
Is it not supported? How can I work around it?
I'm running 2020a on a windows 64bit.
0 个评论
采纳的回答
Rajani Mishra
2020-5-27
As per this documentation : https://www.mathworks.com/help/matlab/matlab_external/limitations-to-python-support.html
py.input() is not supported
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!