Save disp output as a string/cell variable
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (2)
Jan
le 28 Juil 2021
Since Matlab R2021a:
str = formattedDisplayText(x)
Manish Vankudre
le 13 Mar 2018
0 votes
Can you please give an example an explain
Catégories
En savoir plus sur Variables dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!