matlab做响应曲面图

1.方程如下
y_1=(-0.1146+0.1473x_1+0.6493x_2-0.0052x_1 x_2+0.0001x_12+0.0033x_22 )/9
2.代码
x1=43:237;x2=4.3:23.7;###取值范围
[x1,x2]=meshgrid(x1,x2);
Y=(-0.1146+0.1473x1+0.6493x2-0.0052*x1.x2+0.0001x1.2+0.0033*x2.2)/9;
mesh(x1,x2,Y);
figure;
[c h]=contour(x1,x2,Y);
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200419161348783.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3poaWhhb3lp,size_16,color_FFFFFF,t_70

matlab做响应曲面图_第1张图片根据需求,可以窗口编辑图片

你可能感兴趣的:(matlab)