Fitting surface in Matlab

Status
Not open for further replies.

yoyoli

Newbie level 1
Joined
Jan 8, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,289
My problem is to fit 25 data in a surface and get the function of it. I import the excel file in matlab. It has three column. The first one is x-axis and the second one is y-axis. The third column is the desired value at each point. Here is my code: A = xlsread('include complex data.xls')
x=A(1:25,1:2);
yreal=A(1:25,3);
funre=fit(x,yreal,'cubicinterp')
After I ran it, the result was:
Piecewise cubic interpolant:
funre(x,y) = piecewise cubic surface computed from p
Coefficients:
p = coefficient structure

I have no idea what the result means. Also, does anybody have any better idea to solve my problem? I would really appreciate if anyone can help. Thanks.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…