This app demonstrate how to draw a ROI rectangular interactive to user mouse click, drag and drop within an image when using the Matlab App Designer.
It is adapted from the code found in the link and I accustomed it to the app designer environment.
Lei (2019). Drag and drop in matlab app designer (https://www.mathworks.com/matlabcentral/fileexchange/69195-drag-and-drop-in-matlab-app-designer), MATLAB Central File Exchange. Retrieved .