woshiluyu666 发表于 2013-5-18 13:34

求拟合代码

t=;
x=;
plot(t,x,'*')
b0=;
fun=inline('b(1)/(1+b(2)*exp(b(3)*t))','b','t');
=nlinfit(t,x,fun,b0);
b
。。
请问大神们,为什么老是出现错误呢,麻烦帮我检查fun=inline('b(1)/(1+b(2)*exp(b(3)*t))','b','t');
这句哪儿出错了,急求。。

madio 发表于 2013-8-20 17:49

t=;
x=;
plot(t,x,'*');
b0=;
fun=inline('b(1)./(1+b(2)*exp(b(3)*t))','b','t');
=nlinfit(t,x,fun,b0);
b改了一下,你试试看

净心、精心 发表于 2013-8-20 20:17

fun=inline('b(1)./(1+b(2)*exp(b(3)*t))','b','t');换成点除
页: [1]
查看完整版本: 求拟合代码