How can I use 'diary' with Live Scripts?

10 ビュー (過去 30 日間)
Joan Vazquez
Joan Vazquez 2021 年 4 月 27 日
コメント済み: Joan Vazquez 2021 年 4 月 27 日
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.
  1 件のコメント
Joan Vazquez
Joan Vazquez 2021 年 4 月 27 日
Fantastic, thanks. Will update soon :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by