Vector multiplication and putting into an equation

2 vues (au cours des 30 derniers jours)
Nicholas Costa
Nicholas Costa le 8 Fév 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.

Réponses (1)

Walter Roberson
Walter Roberson le 8 Fév 2018
H = (v.^2).*sin(theta).^2 ./ (2 .* g);

Catégories

En savoir plus sur Numerical Integration and Differential Equations dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by