Interpolation Values from a Surface map

27 ビュー (過去 30 日間)
Irfan Tahir
Irfan Tahir 2019 年 10 月 7 日
コメント済み: Sujay Kawale 2021 年 10 月 5 日
Hello,
I have a calibration field from which i want to extract interpolated points.
untitled.jpg
I want to know what would be the Z value provided example X=200.35 and Y=78.89. And it would be ideal if i can extract multiple values like
Z=[Z1,Z2,Z3...Z10] which corresponds to values from
X=[X1,X2,X3....X10]
Y=[y1,y2,...Y10]
I have having a big problem doing this.
Any assistance would be really appreciable.
Viele Grüße,
Trfan Tahir

回答 (1 件)

Turlough Hughes
Turlough Hughes 2019 年 10 月 7 日
HI Irfan,
The interp2 function will solve this. See the following documentation. The function can be written as:
Zq = interp2(X,Y,Z,Xq,Yq)
so given that you have all your X,Y,Z data you just plug in your query points Xq and Yq which can be column vectors consisting of multiple query point. The output is your corresponding interpolated heights, Zq, corresponding to Xq and Yq.
  2 件のコメント
Irfan Tahir
Irfan Tahir 2019 年 10 月 8 日
Thanks, it helps alot. Is there anyway to interpolate the value of any variable if the other two are known.
For example i want to know what Y will be if i know Xq and Zq.
Regards,
Irfan Tahir
Sujay Kawale
Sujay Kawale 2021 年 10 月 5 日
Hi Irfan, I'm interested in the same thing. Did you figure out how to calculate Y if Xq and Zq are known?

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

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by