필터 지우기
필터 지우기

How to get the message output shown in the command window

조회 수: 7 (최근 30일)
Nidhal Bouzouita
Nidhal Bouzouita 2021년 12월 1일
답변: Star Strider 2021년 12월 1일
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 ?
for exemple here , i want to search for the word Processing thats shown in the command window , any idea ?
thanks in advance

채택된 답변

Star Strider
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.
The other option of course is the diary function, then searching those results.
.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by