Three-dimensional plots, MATLAB in Mathematics

Three-Dimensional Plots:

The MATLAB has many functions which will display three-dimensional plots. Most of these functions have similar name as corresponding two-dimensional plot function with a 3 at the end. For illustration, the three-dimensional line plot function is known plot3. The other functions involve bar3, pie3, and stem3.

The Vectors presenting x, y, & z coordinates are passed to the plot3 & stem3 functions. Such functions display the points in three-dimensional space.

By clicking on the rotate 3D icon and then in the plot permits the user to rotate the view to see the plot from various angles. Using the grid function also makes it easier to visualize, as shown in figure.

 

2462_Three-Dimensional Plots.png

Figure: Three-dimensional plot with a grid.

>> x = 1:5;

>> y = [0 -2 4 11 3];

>> z = 2:2:10;

>> plot3(x,y,z,'k*')

>> grid

Posted Date: 10/22/2012 1:53:17 AM | Location : United States







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

Write discussion on Three-dimensional plots
Your posts are moderated
Related Questions
Creating string Variables: The string consists of a few numbers of characters (including, possibly, none). These are the illustrations of the strings: '' 'x' 'ca

Plot types: Besides plot and bar, there are another plot types like stem plots, histograms, stem plots, area plots and pie charts, and also other functions which customize the

Recursive Functions: The Recursion occurs whenever something is defined in terms of itself. In the programming, a recursive function is a function which calls itself. The Recu

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

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,

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

Changing Dimensions: In addition to transpose operator, the MATLAB has some built-in functions which change the dimensions or configuration of matrices, involving fliplr, resh

Fliplr function: The fliplr function "flips" the matrix from left to right (in another words the left-most column, the first column, become the last column and so on), and the

Dimensions - matrix: The size and length functions in the MATLAB are used to find array dimensions. Length function returns the number of elements in the vector. The size func

Example of Symbolic Expression When there is more than one variable, the MATLAB selects which to solve for. In the illustration below, the equation ax 2 + bx = 0 is solved. Th