简体   繁体   中英

SLicing a 3-d plot in MATLAB

假设在MATLAB中我已经获得了一个三维图,如surf(peaks(20))如何沿X=0平面获得切片,以及相应的二维图?

You can make a contour plot:

data = peaks(50);

figure;
surf(data);

figure;
[C,h] = contour(data, [0 0]);
clabel(C,h);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM