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
If I have a vector representing the packed storage form of a symmetric matrix, how do I perform a cholesky factorisation on that?

Types of User-defined Functions: We know how to write a user-defined function, stored in an M-file, which computes and returns one value. This is merely one type of the functi

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

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

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

Histogram: The histogram is a particular type of bar chart which shows the frequency of occurrence of the values within a vector. The Histograms use what are known as bins to

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

strvcat function - concatenation: The function strvcat will concatenate it vertically, that means that it will generate a column vector of the strings.   >> strvcat(fir

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

Program of built-in factorial function: Calling this function yields similar result as the built-in factorial function: >> fact(5) ans =   120 >> factorial(