Save disp output as a string/cell variable
古いコメントを表示
The command disp(x) does a reasonable job of displaying variables of any class. For example, it expands structures to show their fields and values. Is it possible to capture this formatted output as a variable?
採用された回答
その他の回答 (2 件)
Jan
2021 年 7 月 28 日
Since Matlab R2021a:
str = formattedDisplayText(x)
Manish Vankudre
2018 年 3 月 13 日
0 投票
Can you please give an example an explain
カテゴリ
ヘルプ センター および File Exchange で Variables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!