How to exit gracefully from visdiff

4 次查看(过去 30 天)
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 个)

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by