matlab最小二乘法曲线拟合 非线性拟合
x=[125.1200126.6500128.6300129.5100132.8900136.7400137.0100144.0100150.0300155.0600]y...
x =[125.1200 126.6500 128.6300 129.5100 132.8900 136.7400 137.0100 144.0100 150.0300 155.0600] y=[26.5000 37.9300 50.9300 53.4000 64.2000 74.6500 77.4000 87.5400 95.5000 101.8600]
函数原型为:
如何拟合出p,b的值。 展开
函数原型为:
如何拟合出p,b的值。 展开
2个回答
展开全部
>> x =[125.1200 126.6500 128.6300 129.5100 132.8900 136.7400 137.0100 144.0100 150.0300 155.0600];
>> y=[26.5000 37.9300 50.9300 53.4000 64.2000 74.6500 77.4000 87.5400 95.5000 101.8600];
>> fun=@(pb,x) 0.94*(x.^pb(1)-pb(2)^pb(1)).^(1/pb(1));
>> pb=nlinfit(x,y,fun,[1 2])
pb =
2.6227 124.0240
p=2.6227 b=124.0240
>> y=[26.5000 37.9300 50.9300 53.4000 64.2000 74.6500 77.4000 87.5400 95.5000 101.8600];
>> fun=@(pb,x) 0.94*(x.^pb(1)-pb(2)^pb(1)).^(1/pb(1));
>> pb=nlinfit(x,y,fun,[1 2])
pb =
2.6227 124.0240
p=2.6227 b=124.0240
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询