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
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

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

#qYou will need to examine two of the nine sections of data: one section of qualitative data (choose either Gender or Position) one section of quantitative data (choose either Intr

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

Persistent Variables: Generally, whenever a function stops executing, then the local variables from that function are cleared. That means that each and every time a function i

Tracing: Sometimes, when a program has loops and/or selection statements and is not running properly, it is helpful in the debugging process to know exactly which statements h

Example of Functions which return values: Calling this function prints the circumference, since there is no way to store the value, hence, it can be used in following computat

fscanf function - file function: The fscanf reads matrix variable mat columnwise from the file specified by fid. The 'format' involves conversion characters much similar to th

Vectorizing: In most of the cases in MATLAB, loops are not essential. As MATLAB is written specifically to work with the vectors and matrices, most operations can be completed

Functions which return Values versus printing: Also, the function which computes and returns values (throughout the output arguments) does not generally print them; that is le