Vector multiplication and putting into an equation

2 views (last 30 days)
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.

Answers (1)

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

Categories

Find more on Numerical Integration and Differential Equations in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!