Postpone Text Output in Live Scripts

2 ビュー (過去 30 日間)
Bill Capehart
Bill Capehart 2018 年 2 月 5 日
回答済み: Taylor 2024 年 8 月 26 日
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.

回答 (1 件)

Taylor
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.

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by