请问高手这怎么改啊,在matlab中的修改?[x,y]=meshgrid([0:0.1:1],[-3:0.1:3]);z=y-x.^2/9; surf(x,y,z);>> [x,y]=meshgrid([0.1:0.05:1],[2000:100:2900]);z=y-x.^2/9; surf(x,y,z);>> [x,y]=meshgrid([0.1:0.05:1],[2000:100:2900]);z=y-y*x.^2/9; surf(
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 14:17:55
请问高手这怎么改啊,在matlab中的修改?[x,y]=meshgrid([0:0.1:1],[-3:0.1:3]);z=y-x.^2/9; surf(x,y,z);>> [x,y]=meshgrid([0.1:0.05:1],[2000:100:2900]);z=y-x.^2/9; surf(x,y,z);>> [x,y]=meshgrid([0.1:0.05:1],[2000:100:2900]);z=y-y*x.^2/9; surf(
请问高手这怎么改啊,在matlab中的修改?
[x,y]=meshgrid([0:0.1:1],[-3:0.1:3]);
z=y-x.^2/9;
surf(x,y,z);
>> [x,y]=meshgrid([0.1:0.05:1],[2000:100:2900]);
z=y-x.^2/9;
surf(x,y,z);
>> [x,y]=meshgrid([0.1:0.05:1],[2000:100:2900]);
z=y-y*x.^2/9;
surf(x,y,z);
Error using ==> mtimes
Inner matrix dimensions must agree.
请问高手这怎么改啊,在matlab中的修改?[x,y]=meshgrid([0:0.1:1],[-3:0.1:3]);z=y-x.^2/9; surf(x,y,z);>> [x,y]=meshgrid([0.1:0.05:1],[2000:100:2900]);z=y-x.^2/9; surf(x,y,z);>> [x,y]=meshgrid([0.1:0.05:1],[2000:100:2900]);z=y-y*x.^2/9; surf(
[x,y]=meshgrid([0.1:0.05:1],[2000:100:2900]);
z=y-y.*x.^2/9;
surf(x,y,z);
只需要在y-y后面加一个.就行了,因为在Matlab里面数组与数组的相乘是里面元素的乘法都是点乘