how to close visdiff window from command line

Dear Matlabbers,
Does anyone know if it is possible/how to close the visdiff output/Comparison window from the command line?
I'd like the outputwindow to be opened for a couple of seconds and then automatically close it from the command line; simply not opening the window in the first place is not what I'm looking for.
So, e.g.:
visdiff(file1.txt, file2.txt)
* opens visdiff window/comparison result *
(Insert: some code to close comparison window from command line)
* visdiff window closes*
Thanks in advance!

2 个评论

Never mind, I've found the solution myself. For anyone for whom it may be of help:
desktop = com.mathworks.mde.desk.MLDesktop.getInstance();
desktop.closeGroup('Comparison');

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息

提问:

2020-4-16

评论:

XIN
2022-6-28

Community Treasure Hunt

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

Start Hunting!

Translated by