how to close all video player windows by command in matlab?
14 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (1 件)
Image Analyst
2013 年 4 月 2 日
Does "close all" work?
4 件のコメント
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
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!