Write a matlab program to calculate and store, MATLAB Programming

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
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.

Posted Date: 4/2/2013 4:07:07 AM | Location : United States

Related Discussions:- Write a matlab program to calculate and store, Assignment Help, Ask Question on Write a matlab program to calculate and store, Get Answer, Expert's Help, Write a matlab program to calculate and store Discussions

Write discussion on Write a matlab program to calculate and store
Your posts are moderated
Related Questions
This project carries 50% of your ?nal mark. Please hand in your work to the Mathematical and Physical Sciences School O?ce, no later than 4pm Monday 21st January 2013. Please ?l

You">http://www.cs.utsa.edu/~cs1173/labs/laboratory2.html You can go to this link and it should come up I need this by tommorow at 10:00 I just need the published part where you r

This assignment deals with the combination of dynamic memory allocation and structures to create a common data structure known as a doubly-linked list, which is shown in Figure 1.

Show the output - algorithms: Where does the output go? The two possibilities are (i) to an external file, or (ii) to a window on the screen. Based on system, one of these wil

Error in variables statements: Error: The expression in the left of equals sign is not a valid target for an assignment. >>  By placing a semicolon at the end of the sta

Creating row Vectors: There are many ways to generate row vector variables. The most important way is to put the values which you want in the vector in square brackets, separa

how to code this function

The game of Simpli ed Poker is a simple game by today''s standards. You start o with a standard deck of cards, shue the cards, and then give each player 3 cards. Each card has a

The following four 4 equations are needed to be plotted as CONTOUR lines on the axes space (C, T) where C is the horizontal axis, and T is the vertical axis. Contour lines for

Algorithms: Before writing any computer program, it is very useful to first outline the steps which will be essential. An algorithm is the series of steps required to solve a