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


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

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

Advanced File Input and Output: In that section, we saw how to read the values entered by user using the input as well as the output functions disp and fprintf, that shows inf

Illustration of nested for loops and the if statements: For illustration,when the file contains: 33   -11  2  4      5   9 22     5  -7  2     11    3 the outco

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

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

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

Working of Editor and debugger: Editor/Debugger, or commands can be typed from Command Window. For illustration, the dbstop command below will set a breakpoint in the fifth li