matlab与情人节,情人节MATLAB画爱心的小礼物

哈哈哈,笑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

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值