Generate an equation from x,y and z data in a table/surface plot

8 views (last 30 days)
Hi,
I wonder if there is any approach to generate a function for values on z based on x and y values, e.g. a X of 1 and a y of 4 corresponds to a z of 10. I know that this will depend on the behaviour of the function but is there a general approach to perform this in Matlab.
How I create the surface plot is according below:
z=Data(2:end,2:end)
z=table2array(z)
x=1:size(z,2)
y=1:size(z,1)
figure(1)
surf(x,y,z)
Thanks in advance.
Kind regards..
  4 Comments
Vlatko Milic
Vlatko Milic on 25 Mar 2022
@Akira Agata, I attach the file here. I tried with interp2 but could not make it work. I just want to specify the function for the data

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by