medianthe median is defined only for a data set


Median

The median is defined only for a data set which has been sorted first, that means that the values are in order. The median of a sorted set of data values (n) is defined as the value in the middle, when n is odd; or the average of two values in the middle, when n is even. For illustration, for the vector [1 4 5 9 12], the middle value is 5. The function in a MATLAB is known as median:

>> median([1 4 5 9 12 ])

ans =

    5

Request for Solution File

Ask an Expert for Answer!!
Applications of MATLAB: medianthe median is defined only for a data set
Reference No:- TGS0175326

Expected delivery within 24 Hours