1 of 3

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

  • FirstName LastName
  • _____________________________

​

  • Instruction:

​

  • To edit, you don't need to "request access", do: File/Download/Microsoft PowerPoint(.pptx), save to your local drive; then you can edit your local file.

​

  • File name: Save this file as: 105-assign-07-YourFirstName-LastName

​

  • Email report directly to ui.luu@gccaz.edu, (Note: submit this assignment using your "maricopa.edu" email to get direct response for any feedback) (Your personal email address may get filtered into my SPAM folder)

​

​

  • Scores:
  • (1 point) Correct file name (with YOUR name) for PowerPoint (other files will have 0 points: pdf,etc)
  • (1 point) Name on this page
  • (8 points) technical (contents of this PowerPoint)
  • (2 points) submit report on time

​

​

2 of 3

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

  • When the Drone is detected by Radar at location B, Missile is launched at Mach II,
  • Find the launch angle to intercept the drone

Given: t_elapse is the elapse time (in second) that the drone passes from P1 to P2

Calculate: the launch angle theta (in degree)

3 of 3

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

​

​