Vector sum of forces
Show older comments
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.
Answers (2)
James Tursa
on 6 May 2021
sqrt(sum(F.*F,2))
Steven Lord
on 6 May 2021
0 votes
Use the vecnorm function.
Categories
Find more on Linear Algebra in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!