How can I use 'diary' with Live Scripts?

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

 Respuesta aceptada

Steven Lord
Steven Lord el 27 de Abr. de 2021

1 voto

If updating to release R2021a is an option you could use the new formattedDisplayText function. See the Release Notes for more information.

Más respuestas (0)

Categorías

Más información sobre Entering Commands en Centro de ayuda y File Exchange.

Productos

Versión

R2020b

Etiquetas

Preguntada:

el 27 de Abr. de 2021

Comentada:

el 27 de Abr. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by