필터 지우기
필터 지우기

How to know how points are from the same line?

조회 수: 1 (최근 30일)
Ahmad Adee
Ahmad Adee 2017년 5월 29일
답변: KSSV 2017년 5월 30일
I have set of points. I want to check how many of them belong to the same line or the end coordinates of each line.
For example I have matrix A= [1 2; 3 4; 5 6] and I want to check the above.
For example i need to know about 5 points of the four different lines. (starting or end of each of the four)
  댓글 수: 1
John D'Errico
John D'Errico 2017년 5월 29일
What does A have to do with the picture that you show? There seems to be no obvious relation. If you want an answer, then you need to explainCLEARLY what you are looking to do.

댓글을 달려면 로그인하십시오.

답변 (1개)

KSSV
KSSV 2017년 5월 30일
If you have a set of points, to determine whether they fall/ lie along a straight line, calculate the area...if area is zero then the points lie along a straight line. You can get the area give a set of points using polyarea.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by