File Exchange

image thumbnail

contourz

version 1.0 (2.34 KB) by

3D contour plot on a surface.

2 Downloads

Updated

View License

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)

Comments and Ratings (5)

Bjorn Gustavsson

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

Siyi Deng

Siyi Deng (view profile)

very helpful. nicely implemented.

S W

Friedemann Groh

Michael Kleder

Very nice.

MATLAB Release
MATLAB 6.0 (R12)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video