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
Use Matlab to solve the following set of linear equations by Gaussian Elimination. Write a for loop to perform elementary row operations on the augmented matrix to produce

i am doing my project on matlab and the topic of my project is invisible watermarking.How we can extract all pixel values of image in binary form.

Read in any non jpeg image (any image will do) . Save it as a jpeg at quality levels (70, 60,50,40, 30) Get the MSE for each quality level as compared to the orignal file Get the

the basic equation of modeling radioactive decay is where the amount of the radioactive substance is at time and is the decay rate. Some radioactive substances decay into other rad

what equation equals 36

You will write functions • B=null basis(A,tol); • B=range basis(A,tol); The function null basis takes a matrix A as input, and outputs a basis for the null space of A, obtained via

The IF-ELSE Statement: The if statement selects whether an action is executed or not. Selecting between the two actions, or selecting from numerous actions, is accomplished by

Printing - matrices: For matrices, the MATLAB unwinds the matrix column by column. For illustration, consider the random 2 × 3 matrix as shown below: >> mat = randint(2,3,[

How to make EMG analysis by Matlab?

a. Develop and submit the simulation described above. b. Provide a screen shot of the outputs of the DispConfig and MCResults functions. c. Notes: • Include the PPConfig f