plotting outline boundary of gridded value data.
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello Matlab Community,
I am trying to plot the outline boundary of this data set, I am not able get it.
here I am adding the data set and sample plot where I want to plot the outline boundary of the current image.
can anybody help me on this.
thanks in advance.
댓글 수: 0
답변 (1개)
Voss
2022년 10월 20일
load('test_data_for_boundary.mat');
surface(x,y,data_zh11)
hold on
idx = ~isnan(data_zh11);
good_x = x(idx);
good_y = y(idx);
b = boundary(good_x,good_y);
plot(good_x(b),good_y(b),'--r','LineWidth',3)
댓글 수: 0
참고 항목
카테고리
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!