Vector multiplication and putting into an equation

2 ビュー (過去 30 日間)
Nicholas Costa
Nicholas Costa 2018 年 2 月 8 日
回答済み: Walter Roberson 2018 年 2 月 8 日
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.

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 2 月 8 日
H = (v.^2).*sin(theta).^2 ./ (2 .* g);

カテゴリ

Help Center および File ExchangeNumerical Integration and Differential Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by