plotting outline boundary of gridded value data.

조회 수: 4 (최근 30일)
Abhijeet Kumar
Abhijeet Kumar 2022년 10월 19일
답변: Voss 2022년 10월 20일
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.

답변 (1개)

Voss
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)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by