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

10 ビュー (過去 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 Center および File ExchangeFluid Mechanics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by