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 CenterFile Exchange에서 Numerical 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