Get boundary of 2d mesh
조회 수: 4 (최근 30일)
이전 댓글 표시
i have a 3d mesh, i delete z axes and so i'll have 2d mesh. my question is how can i get boundary of the 2d mesh?
댓글 수: 1
답변 (2개)
KSSV
2018년 8월 24일
Read about boundary function.
%%Structured data
[X,Y,Z] = peaks(100) ;
idx = boundary(X(:),Y(:)) ;
figure
plot(X,Y,'.r') ;
hold on
plot(X(idx),Y(idx),'.-b')
%%Unstructured data
x = rand(100,1) ; y = rand(100,1) ;
idx = boundary(x,y) ;
figure
plot(x,y,'.r')
hold on
plot(x(idx),y(idx),'.-b')


댓글 수: 0
Aref Hemati
2018년 8월 24일
댓글 수: 1
Image Analyst
2018년 8월 24일
Try different shrink factors. Attach your 2-D data if you need more help.
참고 항목
카테고리
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!
