Is there a MATLAB function that calculates the magnitude of a velocity vector?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
v(t) = sqrt( x(t)^2 + y(t)^2 + z(t)^2 )
0 Commenti
Risposta accettata
Walter Roberson
il 6 Mar 2022
if x y z are scalar then
norm([x, y, z])
3 Commenti
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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Loops and Conditional Statements in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!