请教关于matlab中curvefit函数的问题?
我的是MATLAB7.0
一开始没有curvefit这个函数
后来下了个Matlab数学建模工具箱,虽然有curvefit这个函数了, 可是运行后会出来这么些东西:
>> tdata=100:100:1000;
>> cdata=1e-05*[4.54,4.99,5.35,5.65,5.90,6.10,6.26,6.39,6.50,6.59];
>> x0=[0.2,0.05,0.05];
>> x=curvefit('curvefun',x0,tdata,cdata);
Warning: Function call curvefit invokes inexact match F:\matlab\toolbox\mathmodl\CURVEFIT.M.
Warning: Wrong spelling of 'private' as a directory name in F:\matlab\toolbox\mathmodl\PRIVATE\NLSQOLD.M
> In CURVEFIT at 144
Warning: Function call NLSQOLD invokes inexact match F:\matlab\toolbox\mathmodl\PRIVATE\NLSQOLD.M.
> In CURVEFIT at 144
??? Undefined command/function 'lsint'.
Error in ==> NLSQOLD at 67
[OLDX,OLDF,OPTIONS]=lsint(XOUT,CostFunction,OPTIONS);
Error in ==> CURVEFIT at 144
[x,OPTIONS,CostFunction,JACOB] = ...
其中curvefun是我自己定义的函数。
请问这是怎么回事,这个是nlsqold文件中67行的程序:
[OLDX,OLDF,OPTIONS]=lsint(XOUT,CostFunction,OPTIONS);
这个是curvefit文件中144、145行的程序:
144 [x,OPTIONS,CostFunction,JACOB] = ...
145 nlsqold(funfcn,x0,OPTIONS,gradfcn,XDATA,varargin:},YDATA);
爵美娜 发布
装一个7.1或者2006b吧,很好用
.
10-04-10
| 添加评论
| 打赏
◆◆
请登录后再发表评论!
◆◆