How can I use 'diary' with Live Scripts?

조회 수: 11 (최근 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 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