Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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

3 visualizzazioni (ultimi 30 giorni)
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

Risposte (1)

madhan ravi
madhan ravi il 19 Nov 2018
y1(y1==3 | y1==4)=[] %removes 3 and 4
y2(y2==3 | y2==4)=[]
  1 Commento
ali mohebi
ali mohebi il 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!

Questa domanda è chiusa.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by