Question: WeBwork : I Steele c Desk - Problem 5 The median of a vector is defined as follows: if there are odd number of clements


WeBwork : I Steele c Desk - Problem 5 The median of a vector is defined as follows: if there are odd number of clements in the vector, the median is the value separating the higher half of and the lower half of the vector; if there are even mumber of elements in the vector, the median is the mean of the two middle values. Por cxample, the median of v 1,2,3 is 2 and the median of v 1,2,3,1] is 2.5. The following MATLAB code aimes at finding the median of a vector user enters. However, there is a bug in the code such that for certain inputs the code fails to find the right median. Use MATLAB's debugging environment to locate and correct the bug
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
