如何用matlab进行多元非线性拟合自定义函数 y=A*x1/(1+B*x2+C*x3)+D 其中x1=[0.25,0.278,0.3125,0.357,0.4167,0.3,0.3333,0.375,0.7286,0.5];x2=[0,0.1111,0.125,0.14286,0.1667,0,0.1111,0.125,0.14286,0.1667];x3=[0,0,0.125,0.2857,0.5,0,0,0.125

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/22 21:29:14
如何用matlab进行多元非线性拟合自定义函数y=A*x1/(1+B*x2+C*x3)+D其中x1=[0.25,0.278,0.3125,0.357,0.4167,0.3,0.3333,0.375,0

如何用matlab进行多元非线性拟合自定义函数 y=A*x1/(1+B*x2+C*x3)+D 其中x1=[0.25,0.278,0.3125,0.357,0.4167,0.3,0.3333,0.375,0.7286,0.5];x2=[0,0.1111,0.125,0.14286,0.1667,0,0.1111,0.125,0.14286,0.1667];x3=[0,0,0.125,0.2857,0.5,0,0,0.125
如何用matlab进行多元非线性拟合
自定义函数
y=A*x1/(1+B*x2+C*x3)+D
其中
x1=[0.25,0.278,0.3125,0.357,0.4167,0.3,0.3333,0.375,0.7286,0.5];
x2=[0,0.1111,0.125,0.14286,0.1667,0,0.1111,0.125,0.14286,0.1667];
x3=[0,0,0.125,0.2857,0.5,0,0,0.125,0.2857,0.5];
y=[0.7572,0.6559,0.6383,0.5636,0.4884,0.9783,0.7489,0.686,0.6288,0.4934];
求可执行代码!求出回归系数A、B、C、D!

如何用matlab进行多元非线性拟合自定义函数 y=A*x1/(1+B*x2+C*x3)+D 其中x1=[0.25,0.278,0.3125,0.357,0.4167,0.3,0.3333,0.375,0.7286,0.5];x2=[0,0.1111,0.125,0.14286,0.1667,0,0.1111,0.125,0.14286,0.1667];x3=[0,0,0.125,0.2857,0.5,0,0,0.125
function zd487022570
x1=[0.25,0.278,0.3125,0.357,0.4167,0.3,0.3333,0.375,0.7286,0.5];
x2=[0,0.1111,0.125,0.14286,0.1667,0,0.1111,0.125,0.14286,0.1667];
x3=[0,0,0.125,0.2857,0.5,0,0,0.125,0.2857,0.5];
y=[0.7572,0.6559,0.6383,0.5636,0.4884,0.9783,0.7489,0.686,0.6288,0.4934];
x = [x1; x2; x3];
% 使用最小二乘拟合:
% opt指定拟合选项(注意查看命令窗口提示的优化终止条件,如对结果不满意考虑适当修改)
% b0为初值(要慎重选择,不同初值得到的结果可能不同)
opt = optimset('MaxFunEvals',50000,'MaxIter',10000,'TolFun',1E-10)
% b0 = [0 -10 1 1];
% b0 = [0.6 -60 15 0.7];
b0 = [0.7 -137 40 0.7];
b = lsqcurvefit(@myfun,b0,x,y,[],[],opt);
A = b(1)
B = b(2)
C = b(3)
D = b(4)
% 把拟合结果与原始数据对照
plot(y,'-o');
hold on
plot(myfun(b,x),'r:x');
function y = myfun(x,xdata)
A = x(1);
B = x(2);
C = x(3);
D = x(4);
x1 = xdata(1,:);
x2 = xdata(2,:);
x3 = xdata(3,:);
y = A*x1./(1+B*x2+C*x3)+D;

已知方程如何用MATLAB进行非线性拟合求模型参数 如何用matlab进行拟合,用最小二乘法? 如何用matlab制作散点图并进行函数拟合 matlab 多变量拟合(急)如何用matlab进行 多变量拟合 如何用matlab进行多元非线性拟合自定义函数 y=A*x1/(1+B*x2+C*x3)+D 其中x1=[0.25,0.278,0.3125,0.357,0.4167,0.3,0.3333,0.375,0.7286,0.5];x2=[0,0.1111,0.125,0.14286,0.1667,0,0.1111,0.125,0.14286,0.1667];x3=[0,0,0.125,0.2857,0.5,0,0,0.125 一个关于如何用matlab进行多元非线性回归的问题我现在只有4组数据 想通过matlab里面的多元非线性回归 得出一个成本模型 其中一个因变量 3个自变量 在matlab里面应该用哪个函数来对这4 如何用matlab解非线性方程? matlab如何利用遗传算法估计参数,如z=ax+bx^2+cxy,已知x、y时间序列数据z的时间序列也已知,或者如何用非线性最小二乘法进行拟合? 请问matlab cftool工具箱如何进行三元拟合?我有三个变量,x1,x2,y,请问如何用cftool拟合? 如何用matlab求解多元Taylor展开 如题,怎么用matlab进行非线性的多元函数拟合?例如:因变量y 自变量 X1 X2 X3 X41658 111 717 153 253191797 122 826 184 378291850 137 958 206 422322205 146 1004 247 56584可以拟合为线性y=a*x1+b*x2+c*x3+d*x4的形式以及非线 如何用matlab进行已知函数的非线性拟合y=a1*x1+a2*x2+(b1*x1+b2*x2)*(1+exp(c+dx3));已知y,x1,x2,x3的80个值 求a1,a2,a3的拟合值不好意思 b1 b2 c d 的拟合也要求 a3写错了。 matlab的非线性拟合MATLAB如何进行非线性拟合呢?比如说y=1/((c*x)^2+1)^0.5如何拟合出参数c呢? 如何用ORIGIN8.0进行洛伦兹拟合! 如何用Origin进行多项式拟合 matlab怎样编写命令对函数进行非线性拟合求出参数,已知数据x, 如何用matlab对一堆数据进行拟合分布呢?在Type of it 中Custom Equations 点不开是什么情况? 如何用matlab求拟合的函数中的参数?