Is there a MATLAB function that calculates the magnitude of a velocity vector?

7 visualizzazioni (ultimi 30 giorni)
v(t) = sqrt( x(t)^2 + y(t)^2 + z(t)^2 )

Risposta accettata

Walter Roberson
Walter Roberson il 6 Mar 2022
if x y z are scalar then
norm([x, y, z])
  3 Commenti
Steven Lord
Steven Lord il 6 Mar 2022
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.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Prodotti


Release

R2012b

Community Treasure Hunt

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

Start Hunting!

Translated by