필터 지우기
필터 지우기

How to check that these points formulate flat plane(on the same plane)?

조회 수: 8 (최근 30일)
M
M 2023년 2월 8일
편집: Jan 2023년 2월 9일
In hyperplanes (4d and more),How to check that these points formulate flat plane(on the same plane)?
for example these points (6d plane)?
P1 =[396326796.725069,-205153846.153846,0,0,0,0];
P2 =[-205153846.153846,396326796.725069,-205153846.153846,0,0,0];
P3= [0,-205153846.153846,396326796.725069,-205153846.153846,0,0];
P4 = [0 0 -205153846.153846 396326796.725069 -205153846.153846 0];
P5=[0 0 0 -205153846.153846 396326796.725069 -205153846.153846];
P6=[0 0 0 0 -205153846.153846 198163398.362534];

답변 (1개)

Jan
Jan 2023년 2월 8일
편집: Jan 2023년 2월 9일
P1 = [396326796.725069,-205153846.153846,0,0,0,0];
P2 = [-205153846.153846,396326796.725069,-205153846.153846,0,0,0];
P3 = [0,-205153846.153846,396326796.725069,-205153846.153846,0,0];
P4 = [0 0 -205153846.153846 396326796.725069 -205153846.153846 0];
P5 = [0 0 0 -205153846.153846 396326796.725069 -205153846.153846];
P6 = [0 0 0 0 -205153846.153846 198163398.362534];
P = [P1; P2; P3; P4; P5; P6];
RankP = rank(P - P(1, :))
RankP = 5
isHyperplane = RankP < 6 % [EDITED] "coplanar" was a clumsy term
isCoplanar = logical
1
  댓글 수: 19
Torsten
Torsten 2023년 2월 8일
편집: Torsten 2023년 2월 8일
Yes, but it's superfluous to test it for the example given because the rank could not come out to be >= 6.
The first row of P - P(1, :) is a zero row.
Jan
Jan 2023년 2월 9일
The term "isCoplanar" in my answer was a bad choice. Then rank tells us the dimensions of the spanned subspace (or "affine hyperplane"). "Planar" and in consequence "coplanar" are less useful in 6D.
I'm not sure if the meaning of the original question has been defined clearly yet: What do you call a "flat plane"?

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by