How to exit gracefully from visdiff

4 visualizaciones (últimos 30 días)
Maura E. Monville
Maura E. Monville el 10 de En. de 2021
Comentada: Maura E. Monville el 13 de En. de 2021
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

Respuesta aceptada

Monisha Nalluru
Monisha Nalluru el 13 de En. de 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 comentario
Maura E. Monville
Maura E. Monville el 13 de En. de 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

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by