Effacer les filtres
Effacer les filtres

Scatteredinterpolant (linear) from symmetric data does not produce symmetric isolines

35 vues (au cours des 30 derniers jours)
ES_Thorny
ES_Thorny le 17 Juil 2024 à 15:39
Modifié(e) : Bruno Luong le 19 Juil 2024 à 19:18
I utilised the scatteredinterpolant function to generate an interpolation from which I derived isolines. My data are situated on a non-equispaced grid of points that are symmetric with respect to the midline. In fact, I only have data on one side, so I placed data on the other side by copying the values from the original data set, exploiting the symmetry.
When I generate iso-lines using the NATURAL method, the isolines have a symmetric trend. If I use the simplest method, i.e. LINEAR, the iso-lines are not symmetric, which does not make sense.
Do you know what may cause this issue and how to sort it out?

Réponses (1)

Bruno Luong
Bruno Luong le 17 Juil 2024 à 15:47
scatteredinterpolant all methods is based on triangulation of the data points. Even the data points are symmetric, the triangulation migh not.
  6 commentaires
Walter Roberson
Walter Roberson le 19 Juil 2024 à 18:52
Map the query location...
QX = X;
mask = QX > MidPoint;
QX(mask) = 2 * MidPoint - QX(mask);
Bruno Luong
Bruno Luong le 19 Juil 2024 à 19:17
Modifié(e) : Bruno Luong le 19 Juil 2024 à 19:18
@ES_Thorny post your code (that can run) if you want to get any specific help. The output is scattered is the z coordinates of the query points (xq,yq) assumed you want to interpolated 2D function. It's described in the doc page. If you have specific question just ask.

Connectez-vous pour commenter.

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by