【#文档大全网# 导语】以下是®文档大全网的小编为您整理的《matlab心形函数》,欢迎阅读!
%matlab程序代码:
scrsz=get(0,'ScreenSize');
figure('Position',[0 0 scrsz(3) scrsz(4)]); [x,y,z]=meshgrid(linspace(-1.3,1.3));
val=(x.^2 + (9/4).*y.^2+z.^2-1).^3-x.^2.*z.^3-(9/80).*y.^2.*z.^3; isosurface(x,y,z,val,0); colormap(Flag); title('heart'); %grid off; %box off; axis off; shading flat;
axis equal; view(-20,35); hidden on;
本文来源:https://www.wddqxz.cn/adde33777fd5360cba1adb83.html