MATLAB: GUI closing when pushing button to call m file

guiproblempush button

Hi people! I'm having a problem with a gui that i'm designing. I call a m file with a push button but at the moment of pressing it closes the gui, i want to keep the gui open because once the m file that i'm calling through the button i want to show data from the m file but on the gui. Does anyone know how to keep my gui open once the button is pushed?

Best Answer

  • Get rid of the "clear all" or "close all" call that you have in your code.