Illustration of median, MATLAB in Statistics

Illustration of Median

When the vector is not in sorted order to start with, the median function will still return the right answer (it will sort the vector automatically). For illustration, scrambling the order of the values in the first illustration will still answer in a median value of 5.

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

    ans =

       5

Posted Date: 10/22/2012 7:05:08 AM | Location : United States







Related Discussions:- Illustration of median, Assignment Help, Ask Question on Illustration of median, Get Answer, Expert's Help, Illustration of median Discussions

Write discussion on Illustration of median
Your posts are moderated
Related Questions
Execution of persistent variables: The functions can also be called from the script or from the Command Window, as shown here. For illustration, the functions are called first

Illustration of tracing a error: The one way of following the flow of function, or tracing it, is to use the echo function. The echo function, that is a toggle, will show each

Illustration of reading from files: For illustration, suppose that there is a data file 'subjexp.dat' that has on each line a number followed by thecharacter code. The type fu

Curve Fitting: The data is fundamentally either discrete or continuous. In most of the applications, data is sampled, for illustration, The temperature recorded every ho

bjjh

Reading from Files: There are many lower level functions which read from files. The function fscanf reads the formatted data into a matrix, by using conversion formats like %s

Statistics There are numerous statistical analyses which can be executed on data sets. In MATLAB software, the statistical functions are in the data analysis help topic known a

Illustration of Nested loops: Running the script shows the output: >> printstars ***** ***** ***** The variable rows identifies the number of rows to print, and

function sortrows - sorting strings: The function sortrows sorts each and every row as a block, or group, and it also will work on numbers. Here in this illustration the rows

Location of a rectangle - graphics objects: The location of a rectangle is [x y w h], where x and y are the coordinates of the lower left point, here w is the width, and h is