Only Outline of a 3D Plot Needed
조회 수: 3 (최근 30일)
이전 댓글 표시
I have got the following 2D view of a 3D Plot. Is it possible to just get a plot of the outer line of this curve and eliminate all the inner colors and lines? I just want the outer shape. Thanks in advance.

댓글 수: 0
답변 (1개)
KSSV
2016년 6월 22일
You have to decide at what location of (x,y) you want the z values (pressure in your case). Eg:
[X,Y,Z] = peaks(26);
figure
surf(X,Y,Z);
xlabel('x')
ylabel('y')
zlabel('z')
x = unique(X) ;
y = unique(Y) ;
z = Z(13,:) ;
figure
plot(y,z,'*-k')
댓글 수: 2
KSSV
2016년 6월 22일
Not a deal..even after surface fitting, you have data in hand. It can be extracted.
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!