> 其他 >
用matlab画出这个函数的图像 z=0.5-(sin(x.^2+y.^2)-0.5).^2/(1+0.001*(x.^2+y.^2)).^2
z=0.5-(sin(x.^2+y.^2)-0.5).^2/(1+0.001*(x.^2+y.^2)).^2
X>=-4;Y
人气:101 ℃ 时间:2020-02-05 02:16:08
解答
>> [x,y]=meshgrid(-2:0.1:2);
>> z=0.5-(sin(x.^2+y.^2)-0.5).^2./(1+(x.^2+y.^2)).^2;
>> mesh(x,y,z)也可以
还可以这样
>> [x,y]=meshgrid(-2:0.1:2);
>> z=0.5-(sin(x.^2+y.^2)-0.5).^2./(1+(x.^2+y.^2)).^2;
>> imshow(mat2gray(z));
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版