Create a unit vector from two locations?

13 visualizzazioni (ultimi 30 giorni)
Jonathan White
Jonathan White il 26 Set 2022
Risposto: David Hill il 26 Set 2022
"A temporary second unit vector (j), was created from the second metatarsal head (MTH2) and CoM location, and divided by its norm."
Code:
MTH2 = [0.472 1.364 0.06]
CoM = [0.471 1.147 0.903]
UnitVector = CoM - MTH2 / norm(CoM - MTH2)
= [-0.069 0.42 0.83]
is this correct?

Risposte (2)

Torsten
Torsten il 26 Set 2022
Modificato: Torsten il 26 Set 2022
is this correct?
No.
MTH2 = [0.472 1.364 0.06]
CoM = [0.471 1.147 0.903]
UnitVector = (CoM - MTH2) / norm(CoM - MTH2)

David Hill
David Hill il 26 Set 2022
MTH2 = [0.472 1.364 0.06];
CoM = [0.471 1.147 0.903];
UnitVector = (CoM - MTH2) / norm(CoM - MTH2)
UnitVector = 1×3
-0.0011 -0.2493 0.9684

Categorie

Scopri di più su Language Fundamentals in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by