Median, MATLAB in Statistics

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

Posted Date: 10/22/2012 7:04:07 AM | Location : United States







Related Discussions:- Median, Assignment Help, Ask Question on Median, Get Answer, Expert's Help, Median Discussions

Write discussion on Median
Your posts are moderated
Related Questions
Variable packages: Variable packages are now the vector of structures, hence each and every element in the vector is a structure. To show one element in the vector, an index i

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

Sequential Search: A sequential search is completed by looping through the vector element-by-element starting from the beginning, looking for the key. Usually the index of the

#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

Steps for input output functions - Lower level file: The steps involved are as shown below:  Open the file.  Read the file, write to the file, or append to the file.

Example of Median For the vector [1 4 5 9 12 33], the median is the average of the 5 & 9 in the middle: >> median([1 4 5 9 12 33]) ans =     7

Nested Structures: The nested structure is a structure in which at least one of the members is itself a structure. For illustration, a structure for the line segment may co

Vectors of nested structures: The Combining vectors and nested structures are possible to have a vector of structures in which several fields are structures themselves. Here i

Nested for Loops: The action of a loop can be any of the valid statement(s). Whenever the action of a loop is the other loop, this is known as nested loop. As an illustrati

Advanced File Input and Output: In that section, we saw how to read the values entered by user using the input as well as the output functions disp and fprintf, that shows inf