呵呵 那个我知道了 ,不过还有个问题想麻烦您.
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:英语作业 时间:2024/08/15 02:29:11
呵呵 那个我知道了 ,不过还有个问题想麻烦您.
我编的这个程序
clear all;
x=1:0.5:4.5;
y=[3.3 5.2 8.4 13.5 22 35.9 58.6 96];
beta=ones(2,3,1,2,3);
beta = nlinfit(x,y,@sd,beta);
结果出来yhat =
Columns 1 through 8 40.171 288.96 3289.9 60040 1.7697e+006 8.4654e+007 6.5941e+009 8.3839e+011
……
Function 'norm' is not defined for values of class 'double' and attributes 'full nd real'.
Error in ==> nlinfit at 204
if norm(step) < betatol*(sqrteps+norm(beta))怎么回事呢,要怎么改呢
我编的这个程序
clear all;
x=1:0.5:4.5;
y=[3.3 5.2 8.4 13.5 22 35.9 58.6 96];
beta=ones(2,3,1,2,3);
beta = nlinfit(x,y,@sd,beta);
结果出来yhat =
Columns 1 through 8 40.171 288.96 3289.9 60040 1.7697e+006 8.4654e+007 6.5941e+009 8.3839e+011
……
Function 'norm' is not defined for values of class 'double' and attributes 'full nd real'.
Error in ==> nlinfit at 204
if norm(step) < betatol*(sqrteps+norm(beta))怎么回事呢,要怎么改呢
请问你的拟合方程形式?
再问: function yhat = sd(beta,x) yhat =(beta(1)+beta(2).*x).*exp(beta(3)+beta(4).*x+beta(5).*x.^2) 对了 中间还有一个这个 Warning: Rank deficient, rank = 5, tol = 1.6671e-001. > In nlinfit at 161
再答: 用nlinfit还是没有求出。但可以用lsqcurvefit求出。 x=1:0.5:4.5; y=[3.3 5.2 8.4 13.5 22 35.9 58.6 96]; f=@(beta,x)(beta(1)+beta(2).*x).*exp(beta(3)+beta(4).*x+beta(5).*x.^2) beta=lsqcurvefit(f,[1,1,1,1,1],x,y) >> beta(1) ans = 1.0631e+003 >> beta(2) ans = 838.6782 >> beta(3) ans = -17.8825 >> beta(4) ans = 0.9413 >> beta(5) ans = 0.4819
再问: function yhat = sd(beta,x) yhat =(beta(1)+beta(2).*x).*exp(beta(3)+beta(4).*x+beta(5).*x.^2) 对了 中间还有一个这个 Warning: Rank deficient, rank = 5, tol = 1.6671e-001. > In nlinfit at 161
再答: 用nlinfit还是没有求出。但可以用lsqcurvefit求出。 x=1:0.5:4.5; y=[3.3 5.2 8.4 13.5 22 35.9 58.6 96]; f=@(beta,x)(beta(1)+beta(2).*x).*exp(beta(3)+beta(4).*x+beta(5).*x.^2) beta=lsqcurvefit(f,[1,1,1,1,1],x,y) >> beta(1) ans = 1.0631e+003 >> beta(2) ans = 838.6782 >> beta(3) ans = -17.8825 >> beta(4) ans = 0.9413 >> beta(5) ans = 0.4819
呵呵!不好意思,还有几道题麻烦!
还有个问题要麻烦你哈,
我终于明白了高中化学反应是分过与不过量,麻烦老师帮我总结金属的重要化合物的方程式(过与不过量) 还有关于终态守恒的问题
英语翻译就是那个今孝子之为亲度也那个不过我要的是整篇后面还有很多啊
正方形纸折心能在我那个问题上留下折心得图解么,还有没其他的,稍微简单的折心,这个有点麻烦额
我就是刚在那个 我又向你提问了 这次悬赏200分 不过还有几个填空题 谢谢啦一共18个选择 7个填空题
测量凸透镜焦距的方法5种方法!!!急!!!!答对了我再加分``````不过麻烦不要用那个看不清楚象(u=f)那个啊,那个
问题你已经知道了,那个100分的题目.
您为我回答得问题还有一点疑问,麻烦再次讲解一下.
您好,我还有一个问题刚才忘了,能不能再次麻烦您一下?
天文望远镜倍数问题我是个超级天文爱好者呵呵 不过俺是个穷小子 也只能看看刘慈欣的小说YY一下特别想有个望远镜 不是那种小
求英语最初级基本教程最最初级的哦,我连26个字母都默写不过来,给个最最最初级的教程,呵呵