matlab画爱心

第一种

x = -1.15:0.001:1.15;
y1 = 1/2*(x.^2.^(1/3)+(x.^4.^(1/3)-4*x.^2+4).^(1/2));
y2 = 1/2*(x.^2.^(1/3)-(x.^4.^(1/3)-4*x.^2+4).^(1/2));
figure(2)
hold on
plot(x,y1,'.');
plot(x,y2,'.r');

在这里插入图片描述
第二种:
还在想,准备调制试试的

发布了115 篇原创文章 · 获赞 38 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/weixin_44146373/article/details/105689769