フィルターのクリア

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

35 ビュー (過去 30 日間)
ES_Thorny
ES_Thorny 2024 年 7 月 17 日 15:39
編集済み: Bruno Luong 2024 年 7 月 19 日 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?

回答 (1 件)

Bruno Luong
Bruno Luong 2024 年 7 月 17 日 15:47
scatteredinterpolant all methods is based on triangulation of the data points. Even the data points are symmetric, the triangulation migh not.
  6 件のコメント
Walter Roberson
Walter Roberson 2024 年 7 月 19 日 18:52
Map the query location...
QX = X;
mask = QX > MidPoint;
QX(mask) = 2 * MidPoint - QX(mask);
Bruno Luong
Bruno Luong 2024 年 7 月 19 日 19:17
編集済み: Bruno Luong 2024 年 7 月 19 日 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.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by