Borrar filtros
Borrar filtros

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

17 visualizaciones (últimos 30 días)
Jay Cheng
Jay Cheng el 2 de Abr. de 2013
Editada: Junaid Mehmood el 4 de Mzo. de 2020
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

Respuestas (1)

Image Analyst
Image Analyst el 2 de Abr. de 2013
Does "close all" work?
  4 comentarios
Samuel Wirajaya
Samuel Wirajaya el 18 de Oct. de 2019
Editada: Samuel Wirajaya el 18 de Oct. de 2019
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 el 4 de Mzo. de 2020
Editada: Junaid Mehmood el 4 de Mzo. de 2020
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)

Iniciar sesión para comentar.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by