How to exit gracefully from visdiff

3 views (last 30 days)
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

Accepted Answer

Monisha Nalluru
Monisha Nalluru on 13 Jan 2021
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 Comment
Maura E. Monville
Maura E. Monville on 13 Jan 2021
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

Sign in to comment.

More Answers (0)

Categories

Find more on Software Development Tools in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!