3D Plotting

3D Plots

1. Functions used for 2D plots are used to create 3D plots with ‘3’ at the end; like, plot3, bar3, bar3h, pie3, comet3, stem3, etc.

2. The meshgrid function can be used to create (x,y) points for which z=f(x,y); then the x,y, and z matrices can be passed to mesh or surf.

Contour Plots

1. These are two-dimensional representations of three-dimensional surfaces.
2. The contour and surfc commands are used to create the plot.

Pseudo Color Plots

1. A two-dimensional shaded map is generated over a grid.
2. A sample function called peaks that generates the x , y , and z matrices of an interesting surface that looks like a mountain range.




Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s