Write matlab function that calculate mean concrete strength

Assignment Help MATLAB Programming
Reference no: EM132106015

Part A

Jesse the civil engineer is testing concrete strength (in MPa), and would like to create some MATLAB functions to analyse the test data. Each MATLAB function requires the use of for loops to solve the problem.

1. (AMS Submission) Write a MATLAB function that accepts a vector of concrete strengths and calculates the mean concrete strength. The mean is given by the equation

x‾ = 1/n∑i=1nxi,

where n is the number of elements in the vector x. Your solution must use a for loop and cannot use the in-built functions mean or sum.

2. (AMS Submission) Jesse requires the concrete to be stronger than 30 MPa in strength. Write a MATLAB function that accepts the vector of concrete strengths and outputs the ratio of concrete strengths above 30 MPa.

3. (AMS Submission) Jesse now has a matrix of concrete strength data. Each column is a different type of concrete, and each row represents a concrete test. Write a MATLAB function that computes the ratio of concrete strengths above 30 MPa for each type of concrete. The output should be a row vector of the calculated ratios.

Note: If you are unable to get a question correct in ANIS, your tutor will look at the code you submit in your portfolio, and will award part marks where appropriate.

Part B

1. Consider a sky diver in free fall.

(a) Draw a free body diagram showing the forces acting on the sky diver. Note that the drag force will be proprtional to velocity squared, and act in the opposite direction to velocity.

(b) Apply Newton's 2nd Law to model the skydiver's velocity with a 1st order ODE, treating down as the positive direction. Present your ODE in standard form.

(c) A skydiver has a mass of 90 kg, and a drag constant of 0.3 kg/m. Solve the terminal velocity of the skydiver. Hint: You do not need to solve the ODE in order to find the terminal velocity.

(d) Comment on what would change in the ODE model once the parachute has been released.

2. Consider the RL circuit shown below in Figure 1. The resulting ODE for the current was modelled in class. Model an ODE such that the dependent variable is the voltage across the resistor. Present your ODE in standard form.

314_figure.jpg

Part C

Consider a water tank with a hole of area a in its base. The tank will drain through this hole, at a rate proportional to the height of the water (as this influences the pressure). Torricelli's Law describes this process

where:

- h(t) = the height of water in the tank at time t in m,
- A = is the cross-sectional area of the tank in m2,
- a = the area of the hole in the bottom of the tank in m2, and
- g = 9.81 m/s2 is the acceleration due to gravity.

For the following questions, use A = 10 m2, a = 0.1 m2, and h(0) = 10 m.

1. Solve the ODE using separation of variables.

2. Use a first order Taylor series to show that when Torricelli's law is linearised about the initial height, we get

dh/dt = -a/A √(g/(2h(0))).(h(t)+ h(0)))

3. Solve the linearised ODE using the integrating factor method.

4. Plot your solutions to Q1 and Q3 in the same figure. Discuss the accuracy of the linearised ODE solution.

Reference no: EM132106015

Questions Cloud

What balance for accounts payable in the financial budget : What balance for Accounts Payable as of the end of the second quarter would be reflected in the financial budget
What is bobs liability should kitty file suit : Bob tells Kitty and Boy to work it out themselves. Should Bob employ a different approach? What is Bobs liability should Kitty file suit?
What is the best definition of a trust boundary : What is the best definition of a trust boundary? What are the 3 most essential questions to ask in threat modeling?
What is the velocity of waves on the rope : A machine tugs sideways on an elastic rope with a frequency of 4.5 Hz. A graph of the transverse displacements of this rope wave at t=1.0s as a function.
Write matlab function that calculate mean concrete strength : Write a MATLAB function that computes the ratio of concrete strengths above 30 MPa for each type of concrete. The output should be a row vector
Determine what is the speed of sound in air : A long tube contains air at a pressure of 1.00 atm and a temperature of 77.0 C. The tube is open at one end and closed at the other by a movable piston.
How many units must the company produce in order : The Schraeger Company has estimated that sales for next quarter would be 30,000 units. How many units must the company produce in order
Discuss primary advantages of gui over a textual interface : Discuss the primary advantages of GUI over a textual (command-line) interface in Linux system administration.
How many molecules of air would there be : The lowest pressure ever obtained in a laboratory setting is 4.0Ã-10â 11 Pa. Part A At this pressure, how many molecules of air would there be in a 50 âC.

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