Write a program that generates three random numbers

Assignment Help MATLAB Programming
Reference no: EM13909832

Create a program: graphs, or plots should have titles, labels for the axes and any other symbols that make them easy to read.

1. Asks the user for:  (i) the initial velocity vo , (ii) the angle of release measured relative to the horizontal θo , and (iii) the height of the launching point relative to the level ground, H. With this information, (a) Find the time of flight for the projectile, tf  =[  vo sin θo  + ( ( vo sin θo )2 +  2H g)1/2] /(g), with g = 9.80 m/s2 

      (b) Plot the trajectory of the projectile every  0.01 s. Here x and y are given by

       x = vo( cosθo ) t and   y =  H + vo ( sin θo ) t  - (g t2 ) / 2

2.  Write a program that generates three random numbers, each between 0 and 9. The three numbers are displayed and the message "You got Lucky Fours" will be displayed if at least two of the digits are 4.

3. plot the function:  y = -8xe^-x/8       in the interval:  0 less than or equal to x less than or equal to 20  in steps of 0.20

4. plot the function:  y = 5x^3   in the interval: 2 less than or equal to x less than or equal to 12  in steps of 0.05 the plot for problem 4 should be in either log-log or semi-log scale, so as to get a straight line.

 

 

Reference no: EM13909832

Questions Cloud

Child observation project : CHILD OBSERVATION PROJECT, This assignment will enable you to engage in field observations of children and will help you to assimilate several aspects of what is taught through lectures and readings.
Flexible working and work discrimination report : You have been requested to carry out research on an existing company which follows flexibility in the work process. This company should be located either in the UAE or in the UK.
Using the conjectural variations model : Using the Conjectural Variations model, answer questions, If we assume only that firms behave rationally, what would be the equilibrium set of conjectural variations (dq2/dq1 = dq1/dq2 =?).  Is this a Nash Equilibrium? Explain.
What is the nash equilibrium : If the firms compete on the basis of (continuous) price, which duopoly model explains what happens?  What kind of a game is this?  If the firms compete a fixed number of times, what is the Nash Equilibrium? Why does this happen?
Write a program that generates three random numbers : Write a program that generates three random numbers, each between 0 and 9. The three numbers are displayed and the message "You got Lucky Fours" will be displayed if at least two of the digits are 4.
Explain the history and limitations of e-commerce : Explain the term e-commerce. Also explain the history and limitations of e-commerce. What do you understand by the term “Database”? Explain the various database models in detail.
Scaling describes the procedures by which numbers are assign : “Scaling describes the procedures by which numbers are assigned to various degrees of opinion, attitude and other concepts.” Discuss. Also point out the bases for scale classification
Van agreements are executed between a value added data : VAN agreements are executed between a value added data communications service provider or VAN and a party desiring data communications services, typically for EDI.’ What are the necessary agreements? Elaborate.
Explain the role of ethics in entrepreneurship : Explain the role of ‘Ethics' in Entrepreneurship. 2. What do you understand by ‘Public Limited Company'? 3. Difference between ‘Intrapreneur' & ‘Intrepreneur'. 4. What is ‘Copyright'?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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