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

 Respuesta aceptada

Matt J
Matt J el 24 de Mzo. de 2021

0 votos

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

2 comentarios

Matt J
Matt J el 24 de Mzo. de 2021
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 el 24 de Mzo. de 2021
Yes, that is what I meant.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Versión

R2021a

Preguntada:

el 24 de Mzo. de 2021

Comentada:

el 24 de Mzo. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by