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 cubic eqn, how can i model this eqn: solve n plot x vs v x^3-2x^2+x...

how can i model this eqn: solve n plot x vs v x^3-2x^2+x=v^2(.532*10^-3) by putting v=0 to 20 and find the change in x

Sopping function and upwind scheme, I am trying to implement this equation ...

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

Program that perform k nearest neighbours algorithm, 1) Convert the table i...

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

Adjacency matrix, how to create adjacency matrix for amino acids in matlab?...

how to create adjacency matrix for amino acids in matlab?

Introduction to handle graphics, In this lab, we implement vectors, script ...

In this lab, we implement vectors, script and functions with plot. Plot function is used to plot the point into graph. These plots are handled by handle (h).  These handle is used

Create matlab program, Create MATLAB program(s) that solve a problem of you...

Create MATLAB program(s) that solve a problem of your own choice. You may opt to solve work related problem, an industrial problem, or problem from your research project. Markin

Statistically stationary environment, For a statistically stationary enviro...

For a statistically stationary environment it would be advantageous to use gear shifting, that is to reduce the adaptation gain with time. To illustrate this, try using a varying a

how to call matlab in batch mode, This can be done from the command line o...

This can be done from the command line or from a makefile. You require a script (filename.m). Just type at the command line, or contain in the makefile: matlab

Portfolio selection problem, An individual with $10,000 to invest has ident...

An individual with $10,000 to invest has identi?ed three mutual funds as attractive opportunities. Over the last ?ve years, dividend payments (in cents per dollar invested) have be

Write a matlab script to calculate the frequency response, A band pass FIR ...

A band pass FIR filter is required to pass frequencies from 5KHz to 8KHz, using a sample rate of 40K i) Explain how this would map to normalization sampling frequencies in radia

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