Matlab心形线动画
%画心形线;
% function cupid %丘比特;
clear all
clo all
clc
h1=figure('name','爱的表达');
% % t(gcf,'outerposition',get(0,'screensize'));
axis([-1.5 1.5 -2 0.5]);
axis off;
t(gcf,'color','black');
n=4;
a=320;
exotic是什么意思
m=10^(-a);
h11=line(NaN,NaN,'marker','.','linesty','-','eramode','none','color','r');
x1=[];
y1=[];
for theta=pi/2:-2*pi/999:-3*pi/2
r1=1+cos(theta+pi/2); leicester
x1=[x1;r1*cos(theta)];
y1=[y1;r1*sin(theta)];
六级报名时间
naivety
t(h11,'xdata',x1,'ydata',y1);
pau(m);
end
pau(1);
海词在线翻译fill(x1,y1,'r');
axis off;
t(gcf,'color','black');
text(-0.16*n,-0.85,'XXX','fontsize',n*18,'color','b');
title('心形线','fontsize',18,'color','m'); 职称英语考试报名入口
disp('love you');
美国pau(1);
x2=[];
y2=[];
h22=line(NaN,NaN,'marker','.','linesty','-','eramode','none','color','b');
for theta=pi/2:-2*pi/999:-3*pi/2
r2=1+cos(theta+pi/2);
x2=[x2;r2*cos(theta)];
y2=[y2;r2*sin(theta)];
t(h22,'xdata',x2,'ydata',y2);
pau(m^19)
end
h2=figure('name','爱的表达');
sunday是什么意思
% % t(gcf,'outerposition',get(0,'screensize'));
fill(x2,y2,'r');
text(-0.58,-0.7,'我爱你','fontsize',40,'color','b');
title('心形线','fontsize',18,'color','m');
axis off;
t(gcf,'color','black');
pau(1)
x3=[];
北京 新东方y3=[];
h33=line(NaN,NaN,'marker','.','linesty','-','eramode','none','color','b');
for theta=pi/2:-2*pi/999:-3*pi/2 %999一片真心;
interiorr3=1+cos(theta+pi/2);
x3=[x3;r3*cos(theta)];
y3=[y3;r3*sin(theta)];
t(h33,'xdata',x3,'ydata',y3);
pau(m^19);
end