Can I insert a new generated GIF into my live script

조회 수: 2 (최근 30일)
Markus König
Markus König 2022년 6월 24일
댓글: Saurabh 2022년 7월 6일
Hello :) I try to make it short and easy.
  • Matlab live script
  • the script generates a new .gif
  • I want to show the new .gif in the script
I know it is possible to insert it at the beginging, but how do I do at runtime?
Thanks in advance!

답변 (1개)

Saurabh
Saurabh 2022년 6월 26일
Hi,
It is my understanding that you have generated the gif file at runtime and want to display the same during the runtime itself. As far as I know there is no direct command to display the gif (for images, it is imshow) files at runtime. If you use, imshow command to display a gif file, it will display only one frame. However, one workaround could be to use Video Viewer in your live script. I have attached a live script demonstrating the same.
For more information, you can refer to this answer .
Hope it helps!
  댓글 수: 2
Markus König
Markus König 2022년 6월 26일
Hi, thanks for your answer :) Yeah you understood it correct, sad to hear that there is no workaround without using the video player or only showing one frame at all. From my understanding it should be the same process as inserting a .gif via "Insert" at the begining. Is there no code for this process? :/
(a variable .gif insert would be an option too, but the live script doesnt update the .gif even if it has changed via runtime)
Saurabh
Saurabh 2022년 7월 6일
Hi Markus, I am afraid that there is no code (atleast not in my knowledge) available for this process. Do let me know if you find one.

댓글을 달려면 로그인하십시오.

카테고리

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

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by