Question: Without iterations or conditionals MATLAB Function: getAverages Input: (1)x9 double) A Vector of numbers Output: (13 double) A Vector of numbers Function Description: You are

Without iterations or conditionals MATLAB Without iterations or conditionals MATLAB Function: getAverages Input: (1)x9 double) A

Function: getAverages Input: (1)x9 double) A Vector of numbers Output: (13 double) A Vector of numbers Function Description: You are given a vector of 9 numbers. - The first 3 numbers represent the hieght (in inches), weight (in pounds) and age (in years) of person 1. - The second 3 numbers represent the hieght (in inches), weight (in pounds) and age (in years) of person 2. - The last 3 numbers represent the hieght (in inches), weight (in pounds) and age (in years) of person 3. Write a function named getAverages that will take in the 19 vector of information and output a 13 vector containing the average height, average weight and average age of the three people. Round each average to two decimal places. Hint(s): - The mean() and round() functions may be useful Examples

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!