Question: [Submit on zyLabs] Write a function that has one input, array1, and two outputs output, medianValue and meanValue. These outputs are as follows: 1. [Submit

[Submit on zyLabs] Write a function that has one input, array1, and two outputs output, medianValue and meanValue. These outputs are as follows:

[Submit on zyLabs] Write a function that has one input, array1, and

two outputs output, medianValue and meanValue. These outputs are as follows: 1.

[Submit on zyLabs] Write a function that has one input, array1, and

1. [Submit on zyLabs] Write a function that has one input, array1, and two outputs output, medianValue and meanValue. These outputs are as follows: - medianValue is the median of the numbers in your array. The median is the number in the array that has exactly the same number of values that are greater than or equal to it as it has values that are less than or equal to it. In an array with an odd number of indices, this is a value from the array itself. In an array with an even number of indices, this is the average of the two middle values in the array. For example, for the array [5 899102319 ], the median (4+10)/2=7. Note that the numbers before and after the median can be the same as the - meanValue is the average of all of the numbers in the array. You should use a loop or multiple loops to find both of these, and you should NOT call either of the following built-in MATLAB functions: - mean - median - sum - cumsum Other functions, like mod, sort and length are allowed, and may be useful to you. Recitation/zyLabs Assignment 4.2: Statistics Please make sure your outputs are in this order: - medianValue - meanvalue Function ? Code to call your function ? Assessment: 1 of 3 Tests Passed Given Tests Your code failed one or more of the example calls. Random Tests Your code failed to calculate mean and median for a random array. Make sure you don't use mean, median, or std built-in functions

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!