yoyoli
Newbie level 1
- Joined
- Jan 8, 2013
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- 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.
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.