Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

3 vues (au cours des 30 derniers jours)
ali mohebi
ali mohebi le 19 Nov 2018
Clôturé : MATLAB Answer Bot le 20 Août 2021
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

Réponses (1)

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

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by