matlab多元函数拟合进行拟合的方程是r=a*b*c*X1*X2/(1+aX1+bX2+dX3)^2r=0.0051,0.0065,0.0073,0.008,0.0086,0.0043,0.0059,0.0067,0.0073,0.0079,0.0065,0.0039,0.0024,0.0019,0.0013X1=0.1 0.15 0.2 0.25 0.3 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2x2
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 04:36:43
matlab多元函数拟合进行拟合的方程是r=a*b*c*X1*X2/(1+aX1+bX2+dX3)^2r=0.0051,0.0065,0.0073,0.008,0.0086,0.0043,0.0059,0.0067,0.0073,0.0079,0.0065,0.0039,0.0024,0.0019,0.0013X1=0.1 0.15 0.2 0.25 0.3 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2x2
matlab多元函数拟合
进行拟合的方程是r=a*b*c*X1*X2/(1+aX1+bX2+dX3)^2
r=0.0051,0.0065,0.0073,0.008,0.0086,0.0043,0.0059,0.0067,0.0073,0.0079,0.0065,0.0039,0.0024,0.0019,0.0013
X1=0.1
0.15 0.2 0.25 0.3 0.2 0.2 0.2
0.2 0.2 0.2 0.2 0.2 0.2
0.2
x2=0.8 0.8 0.8 0.8 0.8 0.2 0.4
0.6 0.8 1 0.8 0.8 0.8 0.8
0.8
X3=0 0 0 0 0 0 0 0
0 0 0.02 0.04 0.06 0.08
0.1
想求a,b,c,d.求大神们的完整程序
matlab多元函数拟合进行拟合的方程是r=a*b*c*X1*X2/(1+aX1+bX2+dX3)^2r=0.0051,0.0065,0.0073,0.008,0.0086,0.0043,0.0059,0.0067,0.0073,0.0079,0.0065,0.0039,0.0024,0.0019,0.0013X1=0.1 0.15 0.2 0.25 0.3 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2x2
A(:,1)=data(:,1).^2;
A(:,2)=data(:,2).^2;
A(:,3)=data(:,1).*data(:,2);
A(:,4)=data(:,1);
A(:,5)=data(:,2);
A(:,6)=ones(16,1);%应该有16行吧
x=(A'*A)\(A'*data);
当然,你这个数据不理想,所以运行会产生警告,这样算出来的系数误差会很大.