Interpolating unknown values in a 3D matrix

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
If you've done the fitting, why can't you just evaluate it at the x,y of interest?

2 个评论

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?
Yes, that is what I meant.

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Interpolation 的更多信息

产品

版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by