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 )

채택된 답변

Walter Roberson
Walter Roberson 2022년 3월 6일
if x y z are scalar then
norm([x, y, z])
  댓글 수: 3
Steven Lord
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 CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품


릴리스

R2012b

Community Treasure Hunt

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

Start Hunting!

Translated by