Postpone Text Output in Live Scripts
조회 수: 2 (최근 30일)
이전 댓글 표시
When working in a Live Script, is there a way to "postpone" the output of all text until the end of a code section or otherwise be prompted to let go and print all of the deferred print statements (i.e., a text equivalent of a hold on/off)? I have a series of fprintf statements that I'd like for students to see all at once summarizing a set of statistics and having them together would make it easier for our students to follow the code.
댓글 수: 0
답변 (1개)
Taylor
2024년 8월 26일
My recommendation would be to assign all of the text you want to print to a single string array and just display that at the end of the section.
댓글 수: 0
참고 항목
카테고리
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!