I have surface data stored in faces and vertices. How to extract data in a slice (or 2D plane) from this Faces and vertices data?
조회 수: 3 (최근 30일)
이전 댓글 표시
I have surface data stored in faces and vertices. How to extract data in a slice (or 2D plane) from this Faces and vertices data?
댓글 수: 0
답변 (1개)
darova
2020년 7월 1일
Use interp2
[x,y,z] = peaks(20);
x1 = linspace(min(x(:)),max(x(:)),20);
y1 = sin(x1);
z1 = interp2(x,y,z,x1,y1);
surf(x,y,z,'facecolor','none')
line(x1,y1,z1,'linew',2)
axis vis3d
댓글 수: 10
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!