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

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

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

Core Objects: The Core Objects in MATLAB are the very fundamental graphics primitives. The description can be found under the MATLAB Help: Under the Contents tab, click the Ha

Example of Nested functions: For illustration, the function below computes and returns the volume of a cube. Three arguments are then passed to it, for the width and length of

Need of a nested loop: How would we sum each individual column, rather than getting an overall sum? Answer: The programming technique would need a nested loop in whi

Illustration of tracing a error: The one way of following the flow of function, or tracing it, is to use the echo function. The echo function, that is a toggle, will show each

#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

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

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