How to interpolate the data inside the polygon?

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.

6 Kommentare

Hi, please try to clarify. From the figure it seems you could just intepolate the data A-h and subtract the value below K-L line...
TAPAS
TAPAS am 6 Dez. 2022
Ignore the things below K-L line.
data ? code ?
TAPAS
TAPAS am 7 Dez. 2022
I have attached the excel file ,from given x,y,z I want to interpolate data inside the polygon.The polygon here is just covering all the data points and i want to interpolate only inside the polygon.
TAPAS
TAPAS am 9 Dez. 2022
I tried but getting an absurd figure

Melden Sie sich an, um zu kommentieren.

Antworten (1)

KSSV
KSSV am 9 Dez. 2022
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1222307/Book2.xlsx') ;
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) ;
pcolor(X,Y,Z)
h = pcolor(X,Y,Z) ;
h.EdgeColor = 'none' ;

Kategorien

Mehr zu Color and Styling finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 6 Dez. 2022

Beantwortet:

am 9 Dez. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by