How to exit gracefully from visdiff

10 ビュー (過去 30 日間)
Maura E. Monville
Maura E. Monville 2021 年 1 月 10 日
コメント済み: Maura E. Monville 2021 年 1 月 13 日
Hi MatLab Experts,
I am using 'visdiff' function in my script to display the differences between pairs of XML files.
This function works great as well as its nice GUI. It provides many features. However I have not found a way to exit visdiff GUI gracefully and resume the script execution.
The only way I found is to close the GUI by killing its window, which makesit disappear from the screen but then the script does not resume. It is stuck there.
Any suggestion/woraround is greatly appreciated.
Thank you
Maura
email: maura.monville@nhs.net

採用された回答

Monisha Nalluru
Monisha Nalluru 2021 年 1 月 13 日
Hi Maura,
In order to close GUI of visdiff without using the close button. Use the following commands
desktop = com.mathworks.mde.desk.MLDesktop.getInstance();
desktop.closeGroup('Comparison');
Hope this helps!
  1 件のコメント
Maura E. Monville
Maura E. Monville 2021 年 1 月 13 日
Great! Thank you very much.
Actually, there is no "close" button. But the GUI is remove clicking on the "Mode" button, which is kind of weird.
Furthermore, is it possible to replace the file names with more significant idetifiers?
My reason is that the name of the XML files I am comparing is not pertinent to the XML file content.
What I would like the GUI to show is the value of the field "Name" that I extract from the XML file.
Unluckily, there is no way to pass this data to the function visdiff.
Many thanks
maura

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSoftware Development Tools についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by