MATLAB: GUI

guiguideMATLABmatlab gui

I have programmed some calculations in my gui, so it takes some time and then displays the result. Problem is that it doesn't show anything 'BUSY' during this period.. this may sometimes lead to repetetive commands being given.
any comments?

Best Answer

You can use waitbar(), or you can set the figure pointer to 'watch' http://www.mathworks.com/help/techdoc/creating_plots/f5-35149.html, or you can update a graphical element and drawnow() after the update, or you can disp() or fprintf() to the command window. You can also set the Enable property of buttons and menus to 'off', or you can create modal windows.