How to interpolate the data inside the polygon?

8 visualizaciones (últimos 30 días)
TAPAS
TAPAS el 6 de Dic. de 2022
Respondida: KSSV el 9 de Dic. de 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.
  6 comentarios
TAPAS
TAPAS el 9 de Dic. de 2022
I tried but getting an absurd figure

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 9 de Dic. de 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' ;

Categorías

Más información sobre Contour Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by