Code covered by the BSD License  

Highlights from
contourz

5.0

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

contourz

by M MA

 

29 Sep 2005 (Updated 04 Oct 2005)

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
30 Sep 2005 Michael Kleder

Very nice.

13 Jan 2007 Friedemann Groh  
12 Apr 2007 S W  
08 May 2009 Siyi Deng

very helpful. nicely implemented.

28 Jul 2011 Bjorn Gustavsson

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

Please login to add a comment or rating.
Updates
04 Oct 2005

update screenshot

Tag Activity for this File
Tag Applied By Date/Time
specialized M MA 22 Oct 2008 08:01:10
plotting M MA 22 Oct 2008 08:01:10
3d M MA 22 Oct 2008 08:01:10
contour M MA 22 Oct 2008 08:01:10
surface M MA 22 Oct 2008 08:01:10
draw M MA 22 Oct 2008 08:01:10
graphics M MA 22 Oct 2008 08:01:10

Contact us at files@mathworks.com