Vector multiplication and putting into an equation

2 visualizaciones (últimos 30 días)
Nicholas Costa
Nicholas Costa el 8 de Feb. de 2018
Respondida: Walter Roberson el 8 de Feb. de 2018
I have a vector to represent velocities for a trajectory and a vector for each angle that pairs with its velocity. How do I get the max height out of each pair using the equation H=(v^2)sin^2(theta)/2g for each pair of angle and velocity and have the results of all appear in a new vector.

Respuestas (1)

Walter Roberson
Walter Roberson el 8 de Feb. de 2018
H = (v.^2).*sin(theta).^2 ./ (2 .* g);

Categorías

Más información sobre Numerical Integration and Differential Equations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by