Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6571039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:49:53+00:00 2026-05-25T14:49:53+00:00

I have some 2D points on my image/figure. I use this function im_data= rand(100,2);

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:49:54+00:00Added an answer on May 25, 2026 at 2:49 pm

    You can use a combination of data brushing and data linking to interactively mark points and remove them from you scatter plot.

    Example:

    %# random data
    x = rand(100,1);
    y = rand(100,1);
    
    %# scatter plot
    hFig = figure;
    scatter(x, y, 50, 'r', 'filled')
    
    %# turn on brushing and linking
    hBrush = brush(hFig); set(hBrush, 'Enable','on', 'Color','g')
    linkdata(hFig, 'on')
    

    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 x and y variables.

    Note that you can always use the zooming tool to magnify a specific region, then switch to the brush for selection…

    brush_select
    brush_remove

    After deleting the points as shown above, we can check the variables:

    >> whos x y
      Name       Size            Bytes  Class     Attributes
    
      x         86x1               688  double              
      y         86x1               688  double       
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an image(a map) with some points of interest placed using position: absolute
So I have some function that receives N random 2D points. Is there any
What should I use if I want to have buttons on an image? I
I have some code which collects points (consed integers) from a loop which looks
I have an input which at some points happens to have the focus. If
I have some sql statements that calculates some numbers. It's possible (with bonus points/penalty
HI, I have a Mapview with some marker points + a marker for current
Let's say I have a domain, js.mydomain.com , and it points to some IP
I have a need to convert Pixels to Points in C#. I've seen some
I have an android application that parses some HTML, downloads an image, and displays

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.