How to read a console data
3 次查看(过去 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!