How to read a console data
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
This is regarding to reading output printed on console. could you please inform me the way to implement it through m code.
Thanks & Regards, Bhatu
댓글 수: 0
답변 (1개)
Ken Atwell
2015년 4월 22일
Do you mean the text created by something you run on the command line? Use the system command's second output argument:
>> [status, cmdout] = system('echo "Hello, World"', '-echo')
Hello, World
status =
0
cmdout =
Hello, World
참고 항목
카테고리
Help Center 및 File Exchange에서 String Parsing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!