1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>CONTOUR3 3D Contour Plot Function
</TITLE>
</HEAD>
<BODY>
<H2>CONTOUR3 3D Contour Plot Function
</H2>
<P>
Section: <A HREF=sec_handle.html> Handle-Based Graphics </A>
<H3>Usage</H3>
This command generates contour plots where the lines are plotted in 3D.
The syntax for its use is identical to the <code>contour</code> function. Please
see its help for details.
<H3>Example</H3>
Here is a simple example of a 3D contour plot.
<PRE>
--> [x,y] = meshgrid([-2:.25:2]);
--> z=x.*exp(-x.^2-y.^2);
--> contour3(x,y,z,30);
Warning: Newly defined variable xlim shadows a function of the same name. Use clear xlim to recover access to the function
Warning: Newly defined variable ylim shadows a function of the same name. Use clear ylim to recover access to the function
Warning: Newly defined variable zlim shadows a function of the same name. Use clear zlim to recover access to the function
--> axis square;
--> view(-15,25)
Warning: Newly defined variable xlim shadows a function of the same name. Use clear xlim to recover access to the function
Warning: Newly defined variable ylim shadows a function of the same name. Use clear ylim to recover access to the function
Warning: Newly defined variable zlim shadows a function of the same name. Use clear zlim to recover access to the function
</PRE>
<P>
The resulting plot
<P>
<DIV ALIGN="CENTER">
<IMG SRC="contour3_1.png">
</DIV>
<P>
</BODY>
</HTML>
|