plotting outline boundary of gridded value data.

2 Ansichten (letzte 30 Tage)
Abhijeet Kumar
Abhijeet Kumar am 19 Okt. 2022
Beantwortet: Voss am 20 Okt. 2022
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.

Antworten (1)

Voss
Voss am 20 Okt. 2022
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)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by