Can you pause a figure without pausing the code execution?
조회 수: 4 (최근 30일)
이전 댓글 표시
I am using the following code to display an image.
splash = imshow('splash.png');
pause(5)
delete(splash)
After 5 seconds I want the figure to delete. Using pause though holds the execution of the matlab script for x amount of seconds. Is there a command/way you can hold the figure, in my case, for 5 seconds while having the script run in the background uninterrupted?
댓글 수: 0
채택된 답변
Walter Roberson
2016년 12월 5일
You can use timer() with a one-shot event to delete the figure.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!