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
Sorting Strings: For the matrix of strings, the sort function works exactly as formerly for numbers. For illustration, >> words = char('Hi', 'Hello', 'Howdy', 'Goodbye', '

Run-time or execution-time error: The Run-time, or execution-time, errors are found whenever a script or function is executing. With most of the languages, an illustration of

Operation on file: We concentrate first on the fgetl function that reads strings from the file one line at a time. The fgetl functions afford more control over how the data is

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

Example of Functions which complete a task: For illustration, the function below just prints the number arguments passed to it in a sentence format: As this function i

Rectangle - graphics objects: The other core graphics object is the rectangle that can have curvature added to it (!!). Merely calling the function rectangle without any argum

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

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

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

Opening and Closing a File: The Files are opened with the fopen function. By the default, fopen function opens a file for reading. If the other mode is preferred, a permission