曲线拟合已知方程y=a*x^b+(1-a)*x^c,还有(0.863,0.7),(0.768,0.5),(0.665,0.3),(0.554,0.2),(0.456,0.123),(0.356,0.052),(0.254,0.024),(0.123,0.012),(0.092,0.0098)数据是已知,怎样求a,b,学了好几天matl

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/29 07:14:15
曲线拟合已知方程y=a*x^b+(1-a)*x^c,还有(0.863,0.7),(0.768,0.5),(0.665,0.3),(0.554,0.2),(0.456,0.123),(0.356,0.052),(0.254,0.024),(0.123,0.012),(0.092,0.0098)数据是已知,怎样求a,b,学了好几天matl
x[OAǿ / Sd}lK7c55eX›/(Ulj*i;_fgv}+,sfNkH %vV$نVJ%$y$:0jv;"~;t{][;v qv{8pQƈ4) 0qNddL* Dw=]Q+y/*r,,R>aX}!]Am?^V;z%j}YNWVQ}VIVhU'n,ın7p;_p;N͑ZoݎX(uxEdl6@q14 !)\(bP:jE`}COMONpM=,yإ>ARgzW#,V%'dBb+1>IvSE$(yuEK3?HVK

曲线拟合已知方程y=a*x^b+(1-a)*x^c,还有(0.863,0.7),(0.768,0.5),(0.665,0.3),(0.554,0.2),(0.456,0.123),(0.356,0.052),(0.254,0.024),(0.123,0.012),(0.092,0.0098)数据是已知,怎样求a,b,学了好几天matl
曲线拟合
已知方程y=a*x^b+(1-a)*x^c,还有(0.863,0.7),(0.768,0.5),(0.665,0.3),(0.554,0.2),(0.456,0.123),(0.356,0.052),(0.254,0.024),(0.123,0.012),(0.092,0.0098)数据是已知,怎样求a,b,
学了好几天matlab没会,

曲线拟合已知方程y=a*x^b+(1-a)*x^c,还有(0.863,0.7),(0.768,0.5),(0.665,0.3),(0.554,0.2),(0.456,0.123),(0.356,0.052),(0.254,0.024),(0.123,0.012),(0.092,0.0098)数据是已知,怎样求a,b,学了好几天matl
帮你试了一下,可以这么做:
首先,将以下数据用文本文档形式保存为c4.txt
0.863 0.7
0.768 0.5
0.665 0.3
0.554 0.2
0.456 0.123
0.356 0.052
0.254 0.024
0.123 0.012
0.092 0.0098
并记住,将这个c4.txt文件放在你的MATLAB安装目录的work文件夹下
接着,编制如下M文件:
%模型设定
function yhat=modef(beta0,x)
a=beta0(1);
b=beta0(2);
c=beta0(3);
yhat=a.*x.^b+(1-a).*x.^c;
将以上程序保存为modef.m文件,放在你的MATLAB安装目录的work文件夹下
然后,在MATLAB命令窗口中输入如下命令:
%模型参数估计
data=load('c4.txt');
x=data(:,1)';
y=data(:,2)';
beta0=[0.6,2,2];
[beta,R,J]=nlinfit(x,y,'modef',beta0);
beta
m1=beta(1);
m2=beta(2);
m3=beta(3);
yy=m1.*x.^m2+(1-m1).*x.^m3;
plot(x,y,'+',x,yy)
得到的输出结果是:
beta =
0.8655
2.7129
2.7127
也就说,模型估计出来为:
y=0.8655*x^2.7129+(1-0.8655)*x^2.7127

好难! 不会啊

matlab 曲线拟合函数中幂为负数该怎么写?比如实现y=a*x^(-1)+b*x^(-2) 的曲线拟合系数a,b 怎么用SPSS拟合曲线给定数据,1.用双曲线1/y = a+b/x作曲线拟合,2.用指数曲线y = aeb/x 作曲线拟合 曲线拟合已知方程y=a*x^b+(1-a)*x^c,还有(0.863,0.7),(0.768,0.5),(0.665,0.3),(0.554,0.2),(0.456,0.123),(0.356,0.052),(0.254,0.024),(0.123,0.012),(0.092,0.0098)数据是已知,怎样求a,b,学了好几天matl Matlab2008,拟合自定义的曲线方程以下是怎么得到的,打开曲线拟合工具箱,选择拟合横纵坐标,输入新的曲线拟合形式:a/(1+(a/37000-1)*exp(-b*x))得到结果如下:General model:f(x) = a/(1+(a/37000-1)*exp(-b*x))Co matlab有公式的曲线拟合--在线等!x=0.019,0.023,0.027y=430,380,256公式中有3个参数a,b,c需要求出,公式是:y=(a*(1-x/b)+x/b)^c 使用matlab做y=a+b/x类曲线拟合,x=[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15]; y=[5985 7817 5049 4162 1934 726 775 815 389 293 175 305 119 76 29]; 使用matlab做曲线拟合,最好是y=a+b/x类的曲线. 如何用matlab进行多元曲线拟合设(x,y)=f(a,b,c)已知当c=1,2,3时,(x,y)对应f(a0,b0,c)的各三个值已知当b=1,2,3时,(x,y)对应f(a0,b,c0)的各三个值已知当a=1,2,3时,(x,y)对应f(a,b0,c0)的各三个值要求拟 matlab cftool怎么输入曲线拟合公式?x=[0 10 20 30 40 50 60 70 80 90 100 110];y=[62.98 76.21 92.23 106.02 123.20 132.17 151.33 179.32 203.21 226.55 248.71 281.42];曲线拟合公式:a/(1+(a/62.98-1)*exp(-b*x))我要得到的是a b的值!fitt 已知x=a,y=b满足方程2x+y=0,求8a+4b-1 matlab 有公式的曲线拟合学了好几天matlab没会,请高手指教.希望详细一点.x=0,46.01,92.64,187.16,387.53,780.50,y=0,0.506,0.887,1.252,1.755,1.981公式中有3个参数a,b,c需要求出,公式是:y=a*b*x/{(c-x)*[1+(b-1)*x/c]}. 已知(4a-a)x^2y^b+1是关于x,y的七次单项式,解方程ax-b=x-1 matlab中的指数曲线拟合问题,我有一个函数,他的格式是y=exp(-x/a)y=exp(-x/a)我想要算出a的值.x,y是数组plot(x,y)y=log(y)/log(exp(1));p=polyfit(x,y,1),但是算出来是两个数.因为polyfit是按y=ax+b的形式算得.不知 matlab中的指数曲线拟合问题,我有一个函数,格式是y=exp(-x/a)y=exp(-x/a)我想要算出a的值.x,y是数组plot(x,y)y=log(y)/log(exp(1));p=polyfit(x,y,1),但是算出来是两个数.因为polyfit是按y=ax+b的形式算得.不知哪位 已知对于任意有理数a,b,关于x,y的方程(a-b)x-(a+b)y=5a+b有一组公共解,求这组公共解. 直线方程 已知集合A={(x,y)|(y-3)/(x-2)=a+1},集合B={(x,y)|(a²-1)x-(a-1)y=15,a≠±1},已知集合A={(x,y)|(y-3)/(x-2)=a+1},集合B={(x,y)|(a²-1)x-(a-1)y=15,a≠±1},满足A∩B=Φ,求实数a的值不要复制 已知集合A={x|y=√1-x,x∈Z},B={y|2x-1,x∈A}则A∩B=?A,B集合的方程解的过程麻烦详细一点! 已知关于x,y的方程x^a+2+3y^1-2b=15是二元一次方程,求A与B的值.快哇, a(X+Y)=b(X-Y)方程怎么解