matlab怎么写约束条件:常值=x+yx=linspace(1,20,50);y=linspace(1,20,50);[xx,yy]= meshgrid (x,y);(xx+yy=常值)zz=2.*xx.*yy./(xx+yy);surf(xx,yy,zz)
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/19 13:07:23
matlab怎么写约束条件:常值=x+yx=linspace(1,20,50);y=linspace(1,20,50);[xx,yy]= meshgrid (x,y);(xx+yy=常值)zz=2.*xx.*yy./(xx+yy);surf(xx,yy,zz)
matlab怎么写约束条件:常值=x+y
x=linspace(1,20,50);
y=linspace(1,20,50);
[xx,yy]= meshgrid (x,y);
(xx+yy=常值)
zz=2.*xx.*yy./(xx+yy);
surf(xx,yy,zz)
matlab怎么写约束条件:常值=x+yx=linspace(1,20,50);y=linspace(1,20,50);[xx,yy]= meshgrid (x,y);(xx+yy=常值)zz=2.*xx.*yy./(xx+yy);surf(xx,yy,zz)
WPS自动升级为2013了,那2012怎么卸载?
x = linspace(1,20,50);
y = linspace(1,20,50);
[xx,yy] = meshgrid(x,y);
c_value = 10; % 定义常数值,这里设为10
xy = (xx+yy==c_value); % 计算出逻辑数值
zz = 2.*xx.*yy./(xx+y...
全部展开
x = linspace(1,20,50);
y = linspace(1,20,50);
[xx,yy] = meshgrid(x,y);
c_value = 10; % 定义常数值,这里设为10
xy = (xx+yy==c_value); % 计算出逻辑数值
zz = 2.*xx.*yy./(xx+yy).*xy; % 多乘以一个逻辑数值,留下想要位置的数值
surf(xx,yy,zz); % 最后的结果是一个平面
收起
x=linspace(1,20,50);
y=100-x;
[xx,yy]= meshgrid (x,y);
zz=2.*xx.*yy./(xx+yy);
surf(xx,yy,zz)
按上面语句试试