Assignment #7 �Using User Defined function: launch_angle� � Posted 10/8, due 10/16�Late: 10/17 12:01 am – 10/18 11:59 pm�Game over: after 10/18 11:59 pm: 0 point
Missile Guidance / Launch Angle Analysis
P2(7,8)
P1(5,6)
P1
P2
A
B
A(5,0)
B(7,0)
θ (theta)
x
y
* The Drone moves from P1 to P2 in t seconds
Given: t_elapse is the elapse time (in second) that the drone passes from P1 to P2
Calculate: the launch angle theta (in degree)
Using User defined function: launch_angle
Review from class website:
* User defined function:poly
* Using function poly with single input
* Using function poly with multiple input (apply for loop)
* launch_angle.m
* Using launch_angle.m
use function launch_angle.m to find launch angle for elapse_time: t=[1,5,10,15]')
(4 points) Screenshot of script
(4 points) Screenshot of Command windows results