You are here

The plot/ Statement

20 January, 2016 - 09:21

With the X1,Y1,Y2 and Y2 variables still in the workspace, type in plot3(X1,Y1,Y2) at the MATLAB prompt. A figure will be generated, click "Show Plot Tools and Dock Figure".

media/image12.png
Figure 3.11 A raw 3D figure is generated with plot3. 
 

Use the property editor to make the following changes. Available

media/image13.png
Figure 3.12 3D Property Editor. 
 

The final result should look like this: 

media/image14.png
Figure 3.13 3D graph of x, sin(x), cos(x) 
 

Use help or doc commands to learn more about 3D plots, for example, image(x), surf(x) and mesh(x).