Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 MATLABimage text in transcribed

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

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

Students also viewed these Databases questions