How to interpolate the data inside the polygon?
Afficher commentaires plus anciens
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 commentaires
Jiri Hajek
le 6 Déc 2022
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
le 6 Déc 2022
Mathieu NOE
le 6 Déc 2022
data ? code ?
TAPAS
le 7 Déc 2022
KSSV
le 7 Déc 2022
TAPAS
le 9 Déc 2022
Réponses (1)
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' ;
Catégories
En savoir plus sur Color and Styling dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

