I want to get the draggable rectangles by using FINDOBJ function:
figureimrect(gca, [10 10 50 50]);databox=findobj(gca, 'Type', 'imrect');
But it does not work as the variable databox returns an empty matrix.
findobjimrectMATLAB
figureimrect(gca, [10 10 50 50]);databox=findobj(gca, 'Type', 'imrect');
Best Answer