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
MENU Function: The MATLAB also has a built-in function known as menu which will display a figure Window with push buttons for the choices. The very first string passed to the

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

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

Function Stubs: The other common debugging method, which is used when there is a script main program which calls many functions, is to use the function stubs. A function stub

Example of Function stubs: The three functions have not so far been written, though, therefore the function stubs are put in place so that the script can be executed and teste

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

Generic code for Reading from Files: The generic code to complete this is as shown below:   fid = fopen('filename'); if fid == -1    disp('File open not suc

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

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

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