Getting user input from python script to matlab.
조회 수: 1 (최근 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!