MATLAB: GUI

gui

Hi,
Can you pls guide me,how to make button action i mean, whne the mouse button is click it has to perform action1,when mouse button relases it has to perform action2.
Thanks in advance for your help.

Best Answer

Hi,
I think you are looking for the WindowButtonDownFcn and WindowButtonUpFcn. You can find an example called window_motion_test.m in $MATLABROOT\help\techdoc\ref\examples.