MATLAB: Multi object selection in a Axes

axesguimultiple selection

I draw some objects in Axes in GUI. I want to select several objects using mouse by a selection box,Just like a windows desktop. I have known some function such as rbbox and ginput. Is there any direct way to select?
Thank you in advance Lin

Best Answer

Have you seen John D'Errico's: FEX: Data selection ?