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!