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
Illustration of Writing variables to a file: For illustration, in the below session in the Command Window, 3 variables are generated; these are then exhibited using who. Then,

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

Animation: In this part we will observe a couple of ways to animate a plot. These are visuals, therefore the outcomes can't really be shown here; it is essential to type these

Three-dimensional pie and bar: For the bar3 function, x & y vectors are passed and the function displays three-dimensional bars as shown in figure: Figure: Three-dimen

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

Indexed empty matrix: The Individual elements cannot be eliminated from matrices, as matrices always have the similar number of elements in every row. >> mat = [7 9 8; 4 6

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

Counting in a While Loop: Whenever it is not known ahead of the time how many values will be entered into the script, it is often essential to count the number of values which

Error-Checking for Integers: As MATLAB uses the type double by default for all the values, to check to make confirm that the user has entered an integer, the program have to c

Empty Vectors: An empty vector or in another words, a vector which stores no values, can be generated using the empty square brackets: >> evec = [] evec = [] >> lengt