How to interpolate the data inside the polygon?

3 views (last 30 days)
TAPAS on 6 Dec 2022
Answered: KSSV on 9 Dec 2022
I have the data in the vertical column( A,B,C,D,E,F,G,H) and the solid dot in each column represents the data location.
I want to interpolate the data inside the polygon(KLMNOPQRSTU) only ,as given in the attached figure.

Sign in to comment.

Answers (1)

KSSV on 9 Dec 2022
T = readtable('') ;
x = T.X ;
y = T.Y ;
z = T.Z ;
[X,Y] = meshgrid(min(x):90:max(x),min(y):1:max(y)) ;
Z = griddata(x,y,z,X,Y) ;
h = pcolor(X,Y,Z) ;
h.EdgeColor = 'none' ;


Find more on Contour Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!