Is there a MATLAB function that calculates the magnitude of a velocity vector?
조회 수: 5 (최근 30일)
이전 댓글 표시
v(t) = sqrt( x(t)^2 + y(t)^2 + z(t)^2 )
댓글 수: 0
채택된 답변
Walter Roberson
2022년 3월 6일
if x y z are scalar then
norm([x, y, z])
댓글 수: 3
Steven Lord
2022년 3월 6일
If you have multiple vectors whose norm you want to calculate stored in a matrix and you're using release R2017b or later, use the vecnorm function.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!