Write a matlab program to calculate and store, MATLAB Programming

Assignment Help:

Problem of a projectile being launched at an angle of O at an initial velocity ofv. The equations for the height hand horizontallocation x as functions of time t are as follows:

h(t) = vtsin () -.5 gt2
2
x(t) = vtcos()

Write a MATLAB program to calculate and store h and x for time increments of 0.1 seconds for e = 20° and v = 200 feet per second. Use a value for g of 32.2 feet/s-. Continue to make the calculations until the projectile hits the ground. Use the plot command to create three graphs:

a.  t along the horizontal axis, h along the vertical axis

b.   t along the horizontal axis, x along the vertical axis

c.  x along the horizontal axis, h along the vertical axis (this is a plot of the trajectory of the projectile)

You can either run the file three times, changing the values to be plotted each time, or you can include three separate plot commands. If you choose the latter option, insert the command figure on a separate line between plot commands. This will open a new plotting window, so the prior graph is not overwritten.


Related Discussions:- Write a matlab program to calculate and store

Matlab programming, How can I separate a row vector into groups.

How can I separate a row vector into groups.

Phase equilibrium, Do you have expert who can solve chemical engineering th...

Do you have expert who can solve chemical engineering thermodynamics chemical equilibrium MATLAB coding?

Example of variables and assignment statements, Example of Variables and as...

Example of Variables and assignment statements: The expression is computed and then that value is stored in the variable. For illustration, this is the way it would appear in

2 dimensional finite element analysis, i need matlab code on 2 dimensional...

i need matlab code on 2 dimensional analysis of temperature distribution in steel using finite element method

Suspension, how to control a suspension by linear quadratic regulator metho...

how to control a suspension by linear quadratic regulator method?

Matrices of random numbers, Matrices of random numbers: The Matrices o...

Matrices of random numbers: The Matrices of random numbers can be generated using the rand and randint functions. The first two arguments in the randint function identify the

IMAGE PROCESSING, IMAGE PROCESSING TECHNIQUES TO FIND THE HUMAN BLOOD GROUP...

IMAGE PROCESSING TECHNIQUES TO FIND THE HUMAN BLOOD GROUP

Function program, write a function program to compute a standard deviation ...

write a function program to compute a standard deviation of a number

Customizing a plot: line types, Customizing a Plot: Line Types, Color, Mark...

Customizing a Plot: Line Types, Color, Marker Types: Plots can be completed in the Command Window, if they are really simple. Though, at many times it is desirable to customiz

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd