Vector multiplication and putting into an equation
Mostra commenti meno recenti
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.
Risposte (1)
Walter Roberson
il 8 Feb 2018
H = (v.^2).*sin(theta).^2 ./ (2 .* g);
Categorie
Scopri di più su Vehicle Dynamics Blockset in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!