I have some 2D points on my image/figure.
I use this function
im_data= rand(100,2);
scatter(im_data(:,1),im_data(:,2),'r*')
[x,y,button] = ginput()
im_data(x,y)=[];
I want to delete [x,y] by simply zooming in / magnifying to avoid deleting correct points.
Any help?
You can use a combination of data brushing and data linking to interactively mark points and remove them from you scatter plot.
Example:
Now you can use the brush tool to select data points by dragging the selection rectangle, right-click, and select remove. Since we linked the data drawn to the actual variables, the deleted points will also be reflected in the
xandyvariables.Note that you can always use the zooming tool to magnify a specific region, then switch to the brush for selection…
After deleting the points as shown above, we can check the variables: