Pie chart - plot functions, MATLAB in Mathematics

Pie chart - plot functions:

The MATLAB also has a function pie which will generate a pie chart. Calling the function with the form pie (vec) draws a pie chart, by using the percentage of each element of vec of the entire (the sum). It shows these beginning from the top of the circle and going around counter-clockwise. For illustration, the first value in the vector [3 10 5 2] , 3, is 15% of the sum, 10 is 50% of the sum, and so on, as shown in figure.

370_Pie chart.png

>> pie ([3 10 5 2])

Also a cell array of labels can be passed to the pie function; such labels will appear rather than the percentages as shown in figure.

2180_Pie chart1.png

   >> pie([3 10 5 2], {'A','B','C','D'})

Posted Date: 10/22/2012 1:50:19 AM | Location : United States







Related Discussions:- Pie chart - plot functions, Assignment Help, Ask Question on Pie chart - plot functions, Get Answer, Expert's Help, Pie chart - plot functions Discussions

Write discussion on Pie chart - plot functions
Your posts are moderated
Related Questions
Concatenation: The String concatenation means to join the strings altogether. Of course, as strings are merely vectors of the characters, the technique of concatenating vector

Customizing Plots : There are numerous ways to customize figures in the Figure Window. On clicking the Plot Tools icon will bring up the Property Editor & Plot Browser, with ma

Common form of the switch statement: The common form of the switch statement is as shown below:   switch switch_expression   case caseexp1    action1   case cas

Illustration of Labels and prompts: The program below prompts the user for endpoints (x1, y1) and (x2, y2) of a line segment, and computes the midpoint of the line segment, th

Illustration of Standard Deviation The less spread out the numbers are, therefore smaller the standard deviation will be, as it is a way of determining the spread of the data.

bar and barh functions: For a matrix, the bar and barh functions will group altogether the values in each and every row. The illustration is as shown: rm = randint(2,4,[1

Illustration of Logical vectors: Calling the function appears to return similar vector as simply vec > 5, and summing the result still works to determine how many elements wer

Complex numbers: A complex number is commonly written in the form z = a + bi here a is known as the real part of the number z, b be the imaginary part of z, and i is √-1

How do I write a product series running from i to n of x''s using a for loop?

Creating string Variables: The string consists of a few numbers of characters (including, possibly, none). These are the illustrations of the strings: '' 'x' 'ca