How to read a console data
4 ビュー (過去 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 で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!