matlab与情人节,情人节MATLAB画爱心的小礼物
发布日期:2021-06-24 14:52:26 浏览次数:2 分类:技术文章

本文共 656 字,大约阅读时间需要 2 分钟。

哈哈哈,笑cry啊,七夕写这个MATLAB代码给女朋友们,好醉~~~ 废话不多说,直接上!!

y1=1:0.01:3;

x1=1+0.*y1;

x2=1:0.01:2;

y2=1+0.*x2;

x3=6+0.*y1;

x4=6:0.01:7;

y3=2+0.*x4;

y4=3+0.*x4;

y5=1+0.*x4;

x6=0:0.01:5;

y6=x6;

t=0:0.1:2*pi;

x=0.6*sin(t)+3;

y=cos(t)+2;

x7=3.9:0.0001:5.5;

y7=(abs(x7-4.7))*2.5+1;

x8=7:0.001:11;

y8=x8-4;

t1=-pi:0.01:pi;

x9=8*(sin(t1).^3);

x10=(16/3)*(sin(t1).^3)+5.5;

y10=(13*cos(t1)-5*cos(2*t1)-2*cos(3*t1)-cos(4*t1))/3-2.7;

y9=(13*cos(t1)-5*cos(2*t1)-2*cos(3*t1)-cos(4*t1))/2;

plot(x9,y9,'c','linewidth',3)

hold on

plot(x10,y10,'c','linewidth',3)

hold on

plot(x1,y1,'r','linewidth',3);

hold on

plot(x2,y2,'r','linewidth',3);

hold on

plot(x3,y1,'r','linewidth',3);

hold on

转载地址:https://blog.csdn.net/weixin_33458486/article/details/115895577 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:php如何强制下载文件,php 强制下载文件实现代码
下一篇:matlab中notebook出错,MATLAB中notebook安装出现问题的解决

发表评论

最新留言

能坚持,总会有不一样的收获!
[***.219.124.196]2024年04月09日 05时45分16秒