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
sprintf function: The sprintf function works precisely like the fprintf function, but rather than printing it generates a string. Here are some illustrations in which the outp

Illustration of Advanced file input and output: For illustration, to refer to the third number in the first element of the cell array: >> subjdata{1}(3) ans =

Minimum and Maximum Value The MATLAB has built-in functions for numerous statistics. For illustration, min and max to find the minimum or maximum value in a data set. >> x

Illustration of Empty vectors: The Empty vectors can also be used to delete elements from the arrays. For illustration, to remove the third element from array, an empty vector

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

Using Functions with the Vectors and Matrices: As MATLAB is written to work with the vectors and matrices, the whole vector or matrix can be passed as an argument to the funct

Refer the subset of a matrix: It is also possible to refer to the subset of a matrix. For illustration, this refers to the first & second rows, second & third columns: >> m

Referring to and Modifying the Matrix Elements: To refer to matrix elements, the row and then the column indices are given in parentheses (always the row index initially and t

Illustration of logical built-in functions: The function find returns the indices of a vector which meet certain criteria. For illustration, to find all the elements in a vect

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