How to remove the selected points and plot into a new figure?

Hello, how can I remove the points marked with a black line and then plot on a new figure? Ps. The points chosen using ransac. Thank you

Answers (1)

use logical operators
ix = x < 0 & y > 0;
scatter(x(~ix),y(~ix))

Categories

Find more on Graphics Objects in Help Center and File Exchange

Asked:

on 14 May 2020

Answered:

on 14 May 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!