Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to select select specify characterist for cluster ?

1 回表示 (過去 30 日間)
Catalina Romero
Catalina Romero 2020 年 10 月 9 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日

回答 (1 件)

Gaurav Garg
Gaurav Garg 2020 年 10 月 14 日
Hi Catalina,
Assuming that the equation of your line is of the form y = mx + c.
The equation can now be rewritten as y - mx - c = 0.
Let's assume that the co-ordinates of the points are - (x1,y1), (x2,y2),..., (xi,yi), so putting (x1,y1) in y - mx - c, we get
a = y1 - mx1 - c
And a can be greater than 0, or less than 0.
For the points above the line, a would be greater than 0, and for the points below the line, a would be less than 0; or could be vice-versa (depending on m and c).
This is how you could determine whether the points fall below/above the line.

この質問は閉じられています。

タグ

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by