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

 Accepted Answer

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

2 Comments

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.

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2021a

Asked:

on 24 Mar 2021

Commented:

on 24 Mar 2021

Community Treasure Hunt

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

Start Hunting!