嗯嗯,谢谢,但怎么会蹦出来这个:
>> cfun=fit(x,y,f);
??? XDATA must be a matrix with one to two columns.
Error in ==> fit at 115
errstr = handleerr('curvefit:fit:xDataMustBeColumnVector', ...
>> xi=1:20;
>> yi=cfun(xi);
??? Undefined function or method 'cfun' for
input arguments of type 'double'.
>> plot(xi,yi,'r*');
??? Undefined function or variable 'yi'.
>>
你需要弄什么直接告诉我吧,我弄好把源程序给你发过去 。邮箱留下。
追问这里有三组数据,请分别找出平均价格M与t 的关系:(猜想出M(t)=A*e^(-t)+B*t+C(t),其中A、B、C为常数,第一项为与新颖度&1有关的量,第二项为与手机耗材成本&3有关的量,第三项为与品牌影响力&2、扩展性能&4有关的量)
万分感谢!