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

  Write a simple program that stores the high temperatures

A meteorological company wants you to write a simple program that stores the high temperatures and low temperates for each of the months of the year. After consulting with trusted programming partners, you come up with a great idea

  Matlab program that ?nds one root of a polynomial equation

Write a MATLAB program that ?nds one root of a polynomial equation using the Bisection method. A script ?le in MATLAB is a ?le that contains a sequence of MATLAB statements.

  Determine the stability status for the digital system

Sketch the z-plane pole-zero plot and determine the stability status for the following digital system.

  Finds the value of a using a numerical method

Finds the value of a using a numerical method

  Review of descriptive statistics and functions

Create a MATLAB function named "problem1", which accepts a number, a vector OR a matrix input and returns 4 outputs in this order related to the input: arithmetic average mean, standard deviation, median, max. The numbers you return for each outpu..

  How much time passes from when the wheel was started from

a sharpening stone at rest is brought to 300 rpm over 2 mins. at that point a dull sword edge is placed against the

  Elementary numerical methods and programming

Project involes determining the dynamics of the double pendulum with a sliding base. Each link is assumed to be of square cross section - MECH 3010: Elementary Numerical Methods and Programming

  Compute and flote 4 average temperature profiles

Generate by measdata.m an array A withsize (365,24), containing temperature measurements for an entire year [1 January,..., 31 December], 24 hours a day [00.00h,...,23.00h].

  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.

  Calculate the vertical stress increase

Calculate the vertical stress increase expected 2.0 m under the ground surface, under the centre of a rigid 2m by 2m footing resting on the soil surface if the total contact load the footing places on the soil is 80kN.

  Find the roots using matlab built-in functions roots & fzero

the following equation, what is the modified equation for a fixed-point iteration method. The roots of the function are x = -2.2020235, -0.4088152, and 1.11083871, how would you determine whether or not the method will converge on a root? If the tech..

  Generate a sphere of diameter 3. create 3 vectors

Generate a sphere of diameter 3. Create 3 vectors representing the translation of this sphere along the x, y, and z axes. Generate the correct vectors given the description below: The sphere should be translated to (-10, -10, -10).

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