Vector sum of forces

25 visualizzazioni (ultimi 30 giorni)
Daniel Moore
Daniel Moore il 6 Mag 2021
Risposto: Steven Lord il 6 Mag 2021
I am given a 1468x3 matrix. The columns represnt Fx, Fy, and Fz (components of force in x, y, z directions)
I need to find the resultant force.
I know that the formula for this would be (Fx^2+Fy^2+Fz^2)^.5, but how do I do this in matlab, for all 1468 columns?
The result should be a 1468x1 matrix.

Risposte (2)

James Tursa
James Tursa il 6 Mag 2021
sqrt(sum(F.*F,2))

Steven Lord
Steven Lord il 6 Mag 2021
Use the vecnorm function.

Categorie

Scopri di più su Programming in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by