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

Help function: Function is computing the two values, there are two output arguments in the function header (i.e., area & circum), that are placed in the square brackets [ ]. A

Illustrations of Sequential search: The two illustrations of calling such function is as shown below: >> values = [85 70 100 95 80 91]; >> key = 95; >> seqsearch

Location of a rectangle - graphics objects: The location of a rectangle is [x y w h], where x and y are the coordinates of the lower left point, here w is the width, and h 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

Illustration of Customizing plots: Illustration, the bar and barh functions by the default place a width of 0.8 between bars. Whenever called as bar(x,y), the width of 0.8 is

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

bjjh

Mode The mode of a data set is the value which appears most often. The built-in function in a MATLAB for this is known as the mode. >> x = [9 10 10 9 8 7 3 10 9 8 5 10];

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