Info

This question is closed. Reopen it to edit or answer.

how to pass a first order line from part of the plot that has the most of the data?

1 view (last 30 days)
hello
i have these set of data. y1 vs y2, y2 is in x axis. most of the data seems to be on regular pattern which a first order line can be assed from, but small number( 3 or 4) are deviated. how can i omit them and make the line to pass from the part that has the most of the data.
thanks in advance

Answers (1)

madhan ravi
madhan ravi on 19 Nov 2018
y1(y1==3 | y1==4)=[] %removes 3 and 4
y2(y2==3 | y2==4)=[]
  1 Comment
ali mohebi
ali mohebi on 19 Nov 2018
by 3 or 4 i mean maybe 3 or 4 out of the whole data set may be fall far apart from the range, not just 4 and 3!

Tags

Community Treasure Hunt

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

Start Hunting!