Scatteredinterpolant (linear) from symmetric data does not produce symmetric isolines
35 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ES_Thorny
el 17 de Jul. de 2024 a las 15:39
Editada: Bruno Luong
el 19 de Jul. de 2024 a las 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?
0 comentarios
Respuestas (1)
Bruno Luong
el 17 de Jul. de 2024 a las 15:47
scatteredinterpolant all methods is based on triangulation of the data points. Even the data points are symmetric, the triangulation migh not.
6 comentarios
Walter Roberson
el 19 de Jul. de 2024 a las 18:52
Map the query location...
QX = X;
mask = QX > MidPoint;
QX(mask) = 2 * MidPoint - QX(mask);
Bruno Luong
el 19 de Jul. de 2024 a las 19:17
Editada: Bruno Luong
el 19 de Jul. de 2024 a las 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.
Ver también
Categorías
Más información sobre Surface and Mesh 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!