Effacer les filtres
Effacer les filtres

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

8 vues (au cours des 30 derniers jours)
M
M le 8 Fév 2023
Modifié(e) : Jan le 9 Fév 2023
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];

Réponses (1)

Jan
Jan le 8 Fév 2023
Modifié(e) : Jan le 9 Fév 2023
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 commentaires
Torsten
Torsten le 8 Fév 2023
Modifié(e) : Torsten le 8 Fév 2023
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 le 9 Fév 2023
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"?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Fluid Mechanics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by