How can I use 'diary' with Live Scripts?

9 vues (au cours des 30 derniers jours)
Joan Vazquez
Joan Vazquez le 27 Avr 2021
Commenté : Joan Vazquez le 27 Avr 2021
I can easily display custom objects in a Live Script, and I would like to easily capture the result in a text file. Using fprintf would be cumbersome, as it would require to define the format for each object.
In other words, the following does not work in a Live Script:
diary on
display(custom_object)
diary off

Réponse acceptée

Steven Lord
Steven Lord le 27 Avr 2021
If updating to release R2021a is an option you could use the new formattedDisplayText function. See the Release Notes for more information.
  1 commentaire
Joan Vazquez
Joan Vazquez le 27 Avr 2021
Fantastic, thanks. Will update soon :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by