Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
deleting points from plot

Subject: deleting points from plot

From: MICHAEL

Date: 2 Apr, 2010 16:18:05

Message: 1 of 2

hello

i have the following code putting 'o' on the plot

while but == 1
    [x,y,but] = ginput(1);
    plot(x,y,'ro')
    NumAP = NumAP + 1;
    APLocation = [APLocation; [x,y]];
end

suppose i have 5 points and i want to delete the 3rd one. how do i do that?

thank you

Subject: deleting points from plot

From: MICHAEL

Date: 2 Apr, 2010 16:35:09

Message: 2 of 2

already solve it...


"michael" <bezenchu@gmail.com> wrote in message <hp55bt$9hv$1@fred.mathworks.com>...
> hello
>
> i have the following code putting 'o' on the plot
>
> while but == 1
> [x,y,but] = ginput(1);
> plot(x,y,'ro')
> NumAP = NumAP + 1;
> APLocation = [APLocation; [x,y]];
> end
>
> suppose i have 5 points and i want to delete the 3rd one. how do i do that?
>
> thank you

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us