Effacer les filtres
Effacer les filtres

components of a vector with sign, having direction and magnitude

4 vues (au cours des 30 derniers jours)
Andrea Somma
Andrea Somma le 13 Nov 2022
Commenté : Andrea Somma le 13 Nov 2022
I have the direction of a vector lets say passing trough [0.3 4 5], [5 7 32] (x,y,z), and the magnitude 45; how can I calculate the components of that vector along x,y and z in an easy way?

Réponse acceptée

Walter Roberson
Walter Roberson le 13 Nov 2022
take the difference between the endpoints, getting vector components. Divide the vector by the length of the vector. Multiply the result by the desired magnitude. Add the first point to get the resulting point.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by