How to get the message output shown in the command window
5 次查看(过去 30 天)
显示 更早的评论
Hello Dear Mathowrk community,
In the command window i get some output message for exmple like info about the imported files, the warings, the values of some variables. I need to search in the command window for any message shown for example ( i mean not searching the command, i need to search for the output ), any idea is tere a shortcut to do it or is there a file that conatins the output that is shown in the command window ?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/819724/image.png)
for exemple here , i want to search for the word Processing thats shown in the command window , any idea ?
thanks in advance
0 个评论
采纳的回答
Star Strider
2021-12-1
Depending on the routine that is producing that output, it might be possible to write it to a file instead of or in addition to writing it to the Command Window. (That would involve opening a file for writing, then duplicating the fprintf statements to write to the file as well as teh Command Window, then closing the file at the end of the routine.) In that instance, searching to file would be straightforward.
.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!