How to exit gracefully from visdiff

3 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Monisha Nalluru
Monisha Nalluru il 13 Gen 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 Commento
Maura E. Monville
Maura E. Monville il 13 Gen 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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Software Development Tools in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by