Ask MATLAB Expert

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.

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M93093484
  • Price:- $75

Guranteed 36 Hours Delivery, In Price:- $75

Have any Question?


Related Questions in MATLAB

Assignment - matlab programmingusing appropriate matlab

Assignment - MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Assignment details -need to write a code for connecting

Assignment Details - Need to write a code for connecting segments (Lines) a special case of TSP. The problem is to connect lines in 2d/ 3d space with path obstructions. Can you help me write the code for this? Hope you m ...

Assignment -we have daily gridded rainfall data of 40 years

Assignment - We have daily gridded rainfall data of 40 years and structure of the dataset is like below; Lat = [6.5:0.25:38.5]; Lon = [66.5:0.25:100]; Rainfall (135x129x365x40) (Lon, Lat, days, years). Now, we looking fo ...

Question a safe prime is a prime number that can be written

Question : A safe prime is a prime number that can be written in the form 2p + 1 where p is also a prime number. Write a MATLAB script file that finds and displays all safe primes between 1 and 1000.

Question - verify the attached paper with matlab and get

Question - Verify the attached paper with matlab and get all the results in the paper and explain step by step the matlab code. Paper - Improving Massive MIMO Belief Propagation Detector with Deep Neural Network. Attachm ...

Assignment -data is given on which want to do computational

Assignment - Data is given on which want to do computational production planning using Metaheuristic MATLAB Programming: 1) Ant Colony Algorithm on both Partial and Total Flexible Problem. 2) Bee Algorithm on both Partia ...

What comparison of means test was used to answer the

What comparison of means test was used to answer the question

Question 1 manipulate spectral imagehyperspectral images

Question 1. Manipulate spectral image Hyperspectral images can be seen as a generalisation of normal colour images such as RGB images. In a normal RGB colour image, there are 3 channels, i.e. channels for red colour, gre ...

Assignment -matlab codes and simulated model in

Assignment - Matlab codes and simulated model in simulink/matlab and truetime. 1. Matlab codes and simulink model for pid controller optimization using particle swarm optimization (PSO) my plant is integer order 1000/(s^ ...

Assignment matlab programmingusing appropriate matlab

Assignment: MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As