I have built (with a lot of help) a basic GUI that allows a user to select a region of interest for an image, and then navigate (using buttons) pixel by pixel around that region of interest to select the exact pixels they want to examine...
When the user finds a pixel they are interested in, they should press a "tag" button or preferably, just the carriage return. A cell array of the pixel coordinates should then be built and the user can navigate around to find a second pixel of interest and tag that too... and so on until they have x amounts of pixel coordinates.
My question is how can I build this cell array whenever they click the button? I have the coordinates already but I don't know how to insert them into a cell array each time the user clicks tag... Is it also possible to do this on a carriage return?