필터 지우기
필터 지우기

how to close all video player windows by command in matlab?

조회 수: 14 (최근 30일)
Jay Cheng
Jay Cheng 2013년 4월 2일
편집: Junaid Mehmood 2020년 3월 4일
The built-in demo code videotrafficof.m opens 4 video player windows to demonstrate how to track cars in video. I would like to learn is there any command I can use to close the video player windows without mouse clicking? THX

답변 (1개)

Image Analyst
Image Analyst 2013년 4월 2일
Does "close all" work?
  댓글 수: 4
Samuel Wirajaya
Samuel Wirajaya 2019년 10월 18일
편집: Samuel Wirajaya 2019년 10월 18일
A convenient way to reproduce this issue is
>> figure, implay(nan(100,100,3,5))
This will open two windows: a Figure window, and a Movie Player window. Doing
>> close all
closes the figure window, but does not close the movie player window. A way to programmatically close the movie player window is appreciated.
Junaid Mehmood
Junaid Mehmood 2020년 3월 4일
편집: Junaid Mehmood 2020년 3월 4일
Probably too late. But this should work.
delete(findall(0))
You can also assign a handle to the movie player and then call the close function. i.e.
m1 = implay()
close(m1)

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by