Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a MATLAB function that solves the equations for the missile trajectory from a given set of initial conditions. Use t = 0.005 s. The

Write a MATLAB function that solves the equations for the missile trajectory from a given set of initial conditions. Use t = 0.005 s. The function should have the following header: function [T, X, Y, Z, U, V, W] = missile(X0, Y0, Z0, m0, mf, Thmag0, theta, phi, Tburn) where the inputs are the initial position, initial and landing mass, initial thrust magnitude, launch angles and burn time of the missile. All inputs are scalars while all outputs are vectors. You need to simulate until the missile lands on the terrain. You might want to consider MATLAB built-in function interp2 to identify the landing location. The terrain demo.m includes an example of how interp2 works.

image text in transcribed

Th-an pA U2 V2 W V2 At Un Un din n+1 2mm man Th yn. pA V, U2 V2 W2 At din n+1 2m. man Th 2n pA g At W, d.ns n+1 2mn man At Xn U, n+1 n+1 At n+1 n-+1 Zn Zn Wnti At n+1 (2) where subscript n denotes variables at current time, subscript n variables at time that is At ahead. Note that Th-an, Th-yn and Th-zn on the right-hand-side are the three components of the thrust at the nth time step. Th-an pA U2 V2 W V2 At Un Un din n+1 2mm man Th yn. pA V, U2 V2 W2 At din n+1 2m. man Th 2n pA g At W, d.ns n+1 2mn man At Xn U, n+1 n+1 At n+1 n-+1 Zn Zn Wnti At n+1 (2) where subscript n denotes variables at current time, subscript n variables at time that is At ahead. Note that Th-an, Th-yn and Th-zn on the right-hand-side are the three components of the thrust at the nth time step

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

How was their resistance overcome?

Answered: 1 week ago

Question

3. What strategies might you use?

Answered: 1 week ago