Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

3 Ansichten (letzte 30 Tage)
ali mohebi
ali mohebi am 19 Nov. 2018
Geschlossen: MATLAB Answer Bot am 20 Aug. 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

Antworten (1)

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

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by