Vector multiplication and putting into an equation

2 Ansichten (letzte 30 Tage)
Nicholas Costa
Nicholas Costa am 8 Feb. 2018
Beantwortet: Walter Roberson am 8 Feb. 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.

Antworten (1)

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

Kategorien

Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by