Three-dimensional pie and bar, MATLAB in Mathematics

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:

685_Three-dimensional pie and bar.png

Figure: Three-dimensional bar chart.

 

>> x = 1:6;

>> y = [33 11 5 9 22 30];

>> bar3(x,y)

 

Likewise, the pie3 function display data from a vector as a three-dimensional pie as shown in Figure

 

>> pie3([3 10 5 2])

1550_Three-dimensional pie and bar1.png

Figure: Three-dimensional pie chart.

Posted Date: 10/22/2012 1:55:41 AM | Location : United States







Related Discussions:- Three-dimensional pie and bar, Assignment Help, Ask Question on Three-dimensional pie and bar, Get Answer, Expert's Help, Three-dimensional pie and bar Discussions

Write discussion on Three-dimensional pie and bar
Your posts are moderated
Related Questions
Use of logical vector: Determine how many elements in the vector vec were greater than 5, the sum function can be used on the resulting vector isg: >> sum(isg) ans =

Structure Consisting of the Fields A MATLAB can also solve the sets of equations. In this illustration, the solutions for x, y, & z are returned as a structure consisting of th

Differentiation: The derivative of a function y = f(x) can be written as follows or f  '(x) and is defined as the rate of change of the dependent variable y with respe

Logical Vectors: The relational operators can also be used with the vectors and matrices. For illustration, let's say that there is a vector, and we want to compare each eleme

Function fopen - file function: The permission string in the call to the fopen function identifies that the file is opened for writing to it. Just as when reading from a file,

Print an imaginary number: To print an imaginary number, the function disp will show both parts automatically: >> disp(z1)    4.0000 + 2.0000i The function fprint

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

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

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

Illustrations of Variable number of output arguments: In the illustrations shown here, the user should actually know the type of the argument in order to establish how many va