Question: matlab Create a function that recieves a vector and returns the following metrics: Harmonic mean: HM n + +...+ 1 21 02 In Geometric mean:
Create a function that recieves a vector and returns the following metrics: Harmonic mean: HM n + +...+ 1 21 02 In Geometric mean: Gm = VX1X2...In RMS average: RMS = w;+xz+...+ n Function 1 function [Hm Gm RMS] = averages (x) 2 2 3 4 end 5 Code to call your function 1 x = [10, 10.2, 11, 10.5, 9.8, 13]; 2 averages(x)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
