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 件のコメント

ABC DEF
ABC DEF 2020 年 4 月 16 日
編集済み: ABC DEF 2020 年 5 月 6 日
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');
XIN
XIN 2022 年 6 月 28 日
VERY USEFUL!

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating, 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