Example of customizing plots, MATLAB in Statistics

Example of customizing plots:

As the other illustration of customizing plots, the pieces of a pie chart can be "exploded" from the rest. In this situation, the two vectors are passed to the pie function: initially the data vector, and then a logical vector; the elements for which the logical vector is true will be exploded from the pie chart. The third argument, a cell array of labels, can be passed. The product is as shown in figure.

 

2259_Example of customizing plots.png

>> vec = [3 10 5 2];

>> which = (vec == 5)

which =

         0   0   1   0

>> pie(vec, which, {'A', 'B', 'C', 'D'})

Posted Date: 10/22/2012 1:59:57 AM | Location : United States







Related Discussions:- Example of customizing plots, Assignment Help, Ask Question on Example of customizing plots, Get Answer, Expert's Help, Example of customizing plots Discussions

Write discussion on Example of customizing plots
Your posts are moderated
Related Questions
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

Advanced File Input and output: Where 'format' involves the conversion characters much like those used in the fprintf function. For illustration, to read the file 'subjexp.dat

Lower Level File I/O Functions: Whenever reading from data file, as long as the data in the file is "regular" the load function works-in another words, the similar type of dat

Illustration of Mode When there is more than one value with similar (highest) frequency, then the smaller value is mode. In the case below, as 3 and 8 appear twice in the vecto

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

Illustration of Binary search: An illustration to search for the key of 91 in the vector is as shown below: The table below shows what will happen in each iteration of

Graphics objects: The objects involve graphics primitives like lines and text, and also the axes used to orient the objects. These objects are organized hierarchically, and the

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

WHILE Loops: The while statement is used as a conditional loop in MATLAB; it is used to repeat an action whenever ahead of the time it is not known how many times the action w

Illustration of Input in a for loop: In this illustration, the loop variable iv iterates through the values 1 through 3, therefore the action is repeated three times. The acti