MATLAB: I am making a GUI. GUI plots the data. While GUI is plotting the data, to avoid any manual intervention I want to lock GUI window till I get the plot. I have disabled all controls in GUI in plot function to lock GUI. But GUI is not locking properly

guilocking all controls in gui window when plotting data

As I mentioned in question I want to lock GUI while GUI is plotting the data, but I am not getting locking (disabling all controls in GUI) function properly. At start of plot function I have disabled all controls in GUI and at the ending of plot function I have enabled all disabled controls. I am expecting the flow like – GUI controls get disabled as soon as I pressed PLOT button, then GUI plots the data and then enable the controls again. But this is not happening. The plot function(plot button) disables all GUI controls when plot function is about to end, it is not locking all GUI controls as I pressed PLOT button

Best Answer

Hello,
Can you put the command "drawnow", just after the function which disabled all controls and tell if it solve your problems?
Related Question