I have known X, Y and Z values for a 3D matrix from which I was able to create a quadratic fit using the curve fitting tool. As Z values do not exist for some of the X and Ys, I would like to use this fit to generate Z values by interpolation. I am a new Matlab user and just discovering how to use this.
Many thanks for the help

 採用された回答

Matt J
Matt J 2021 年 3 月 24 日

0 投票

If you've done the fitting, why can't you just evaluate it at the x,y of interest?

2 件のコメント

Matt J
Matt J 2021 年 3 月 24 日
Eray's comment moved here:
Many thanks for the suggestion Matt. What I derived from you suggestion is to import a set of x and y values for which I want the z values for and used the following command.
z1=fittedmodel(x1,y1)
This command populated z1, listing the interpolated values for the x and y values of interest (x1 and y1). Iam guessing this is the correct way?
Matt J
Matt J 2021 年 3 月 24 日
Yes, that is what I meant.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Interpolation についてさらに検索

製品

リリース

R2021a

質問済み:

2021 年 3 月 24 日

コメント済み:

2021 年 3 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by