Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 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 AMS, your tutor will look at the code you submit in your portfolio, and will award part marks where appropriate

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What types of problems?

Answered: 1 week ago

Question

Prepare a short profile of Henry words worth Longfellow?

Answered: 1 week ago

Question

What is RAM as far as telecommunication is concerned?

Answered: 1 week ago

Question

Question 1: What is reproductive system? Question 2: What is Semen?

Answered: 1 week ago

Question

=+ For what reasons can and do unions go on strike?

Answered: 1 week ago

Question

=+ Is secondary industrial action common and/or legal?

Answered: 1 week ago

Question

=+What sanctions are available to employers

Answered: 1 week ago