How can I use 'diary' with Live Scripts?

11 次查看(过去 30 天)
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

采纳的回答

Steven Lord
Steven Lord 2021-4-27
If updating to release R2021a is an option you could use the new formattedDisplayText function. See the Release Notes for more information.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by