3rd smoothing in MATLAB

Suppose that in MATLAB I got a three-dimensional graph, for example, surf(peaks(20)) , how do I get a slice along the X=0 plane and the corresponding two-dimensional graph?

+4
source share
1 answer

You can do a contour plot:

 data = peaks(50); figure; surf(data); figure; [C,h] = contour(data, [0 0]); clabel(C,h); 
+5
source

All Articles