rubberbox — Rubberband box for rectangle selection
[final_rect,btn]=rubberbox(initial_rect) [final_rect,btn]=rubberbox() [final_rect,btn]=rubberbox(edition_mode)
vector with two or four entries. With four entries it gives the initial rectangle defined by [x_left, y_top, width, height], with two entries width and height are supposed to be 0. coordinates of the upper-left corner of
:a boolean, if edition_mode==%t; button press selects the first corner, release selects the opposite corner.if edition_mode==%f, button press or click selects the first corner, a click is requested to select the opposite corner. The default value is edition_mode=%f
:a rectangle defined by [x_left, y_top, width, height]
:an integer, the number of the mouse button clicked
rubberbox(initial_rect) tracks a rubberband box in
the current graphic window, following the mouse. When a button is clicked rubberbox returns the final
rectangles definition in final_Rect. If the argument
initial_rect user has to click to fix the initial
corner position.