필터 지우기
필터 지우기

Animations in Live Script Exports

조회 수: 13 (최근 30일)
Nicholas Fugal
Nicholas Fugal 2023년 10월 9일
답변: Udit06 2023년 10월 20일
I'm using Live Scripts more and more, especially as a form of documentation. It would be useful if animated plots were saved as animations in the exported file (e.g. HTML). Is this already a feature that I'm missing in the options somewhere?

답변 (1개)

Udit06
Udit06 2023년 10월 20일
Hi Nicholas,
I understand that you want to export the animated plots created in live script to HTML. As per my understanding, there is no direct option available in MATLAB currently to achieve the same. You could follow the following workaround to achieve the same:
1) Save the animated plot as video file using the "VideoWriter". You can refer to the following MATLAB answer to achieve the same.
2) Open the source HTML code and remove the "img" HTML tag code displaying the static plot.
3) Embed the saved video file into your Live Script using "video" HTML tag. You can refer to the following documentation for the same.
I hope this helps.

카테고리

Help CenterFile Exchange에서 Animation에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by