标题: 求指点:拟合总是出现input to EIG must not contain NaN or Inf [打印本页] 作者: Jeisen.Fay 时间: 2013-1-20 17:22 标题: 求指点:拟合总是出现input to EIG must not contain NaN or Inf 我今天用MATLAB 拟合个曲线y=a*exp(b*x)+c 但无论是自定义拟合 还是工具箱里面用自定函数拟合 都出现input to EIG must not contain NaN or Inf
跪求大神解释!
代码:
clear
syms x;
t1=1999:2008;
A=[89677,99215,109655,120333,135823,159878,182321,209407,246619,300670];
A=A';
t1=t1';
g=fittype('a*exp(b*x)+c','indep','x','coeff',{'a','b','c'});
[cfun,eva]=fit(t1,A,g)