Vector sum of forces
이전 댓글 표시
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.
답변 (2개)
James Tursa
2021년 5월 6일
sqrt(sum(F.*F,2))
Steven Lord
2021년 5월 6일
0 개 추천
Use the vecnorm function.
카테고리
도움말 센터 및 File Exchange에서 Simscape에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!