Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started