Is there a MATLAB function that calculates the magnitude of a velocity vector?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jack
el 6 de Mzo. de 2022
Comentada: Jack
el 7 de Mzo. de 2022
v(t) = sqrt( x(t)^2 + y(t)^2 + z(t)^2 )
0 comentarios
Respuesta aceptada
Walter Roberson
el 6 de Mzo. de 2022
if x y z are scalar then
norm([x, y, z])
3 comentarios
Steven Lord
el 6 de Mzo. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!