Code covered by the BSD License  

Highlights from
contourz

5.0

5.0 | 5 ratings Rate this file 12 Downloads (last 30 days) File Size: 2.34 KB File ID: #8589
image thumbnail

contourz

by

 

29 Sep 2005 (Updated )

3D contour plot on a surface.

| Watch this File

File Information
Description

Similar to contour3 but contours are drawn over any surface.

This may be useful if you wanna add contours to a surface created by surf(x,y,z,v).

Notice that if v = z, is the same as use contour3.

The screenshot was created as:

[x,y,v] = peaks;
z=-(x.^2+y.^2);
       surf(x,y,z,'facecolor','none','edgealpha',.1)
hold on
contourz(x,y,z,v);

% add clabels:
view(2)
contourz('clabel');
view(3)

MATLAB release MATLAB 6.0 (R12)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
28 Jul 2011 Bjorn Gustavsson

Works and follows a gap in Mathworks contour functions. Much apreciated!

08 May 2009 Siyi Deng

very helpful. nicely implemented.

12 Apr 2007 S W  
13 Jan 2007 Friedemann Groh  
30 Sep 2005 Michael Kleder

Very nice.

Contact us