how to stop wait state of imroi

hi dudes,
i have designed a GUI which includes a circle button and a rect button. in rectbutton callback ,imrect is called in a loop while rectbutton state is on and imellipse is called in the same way in circlebutton callback. now the problem is when i click for example on circlebutton and then click the rect button both imrect and imellipse are active and both shapes are drawn how can i exit imrect (or imellipse) function when its in the waitfor state?
thanks

Answers (0)

This question is closed.

Asked:

on 2 Jul 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!