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

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
Write a function called threshold2 (in a file called 'threshold2.m'). The function takes an arbitrary number of input variables. The first input variable, t, is required and is the

I am trying to implement this equation u_t=-\u_x\ using upwind scheme. and as a second step, I need to put some stopping function g(h) where u_t=-g(h)\u_x\ how can I write this on

Expand a matrix: To expand a matrix, an individual element could not be added as that would mean there would no longer be the similar number of values in every row. Though,

Use MATLAB and a method based on linear predictive coding for the restoration of a clipped voiced speech signal. My proposed algorithm is based on linear prediction where a reco

using 0de 45 how can i get the anlytical and numerical solutions for an equation,,

Command Window: To the left of the Command Window, there are 2 tabs for the Current Directory Window and Workspace Window. If the Current Directory tab is selected, the files

1.      Write a MATLAB program to generate and plot the signal                                     x1(n) = [3 2 -2 0 7],  n = 0,1,2,3,4. 2.      Write a MATLAB program to gen

Illustration of switch statement: Here are the two illustrations of calling this function: >> quiz = 22; >> lg = switchletgrade(quiz) lg = X >> quiz = 9; >>

Illustration of a conditional loop - While loop: As an illustration of a conditional loop, we will write a function which will find the first factorial which is greater than t

1) Convert the table into format convenient for the processing with MATLAB. 2) Prepare a program that perform K Nearest Neighbours algorithm using Euclidian distance. (Your prog