(完整word)小人表白MATLAB代码

2022-07-12 01:12:11   文档大全网     [ 字体: ] [ 阅读: ]

#文档大全网# 导语】以下是®文档大全网的小编为您整理的《(完整word)小人表白MATLAB代码》,欢迎阅读!
小人,表白,完整,代码,MATLAB
(完整word)小人表白MATLAB代码

function gaobai

sc = get(0,'ScreenSize’);

>> figure(’toolbar’,’none’,。

’position',[sc3/4 50 sc3)*2/4 sc4)100. ’name’,’告白 Code by QIAOXINGXING’); set(gca,'position’,[0 0 1 1] >> set(gca,'xtick’,[,’ytick',[]; > hold on > axis equal;

> axis(-0 8 —。3 33 > degree = pi/180

> deg1 = [120:—2:60]。*degree >> deg2 = -deg1;

>> t1 = linspace(—120,-60,lengthdeg1)*degree; t2 = -pit1; u2 = 005,.5*exp(pi/6i)+5] h1 = plot0 > h2 = plot0 h3 = plot(0; h4 = plot1 A = 0;

>> for c = 0:5

for b = 1lengthdeg1

delete(h1)deleteh2);deleteh3;delete(h4; B = exp(i*deg1b) + A C = exp(i*deg2(b) + B u = [A B C;

E = [.3expi*(-90:270)。*degree),1.3*i]; E = E + 13*i + B;

u1 = u2expit1b) + 8*i + B; u11 = u2exp(it2b + 8i + B

h1 = plotu'linewidth',3)h2 = plot(E,'linewidth',3);

h3 = plot(u1,'linewidth'3;h4 = plotu11,'linewidth’,3) pause.001 end

CC = AA = C; end

> pause(.2) t11 = [120:2:—15*degree;

>> t22 = linspace(120195lengtht11)*degree >> for d = 1:length(t11 delete(h3);delete(h4)

u1 = u2*exp(i*t11d) + 8*i + B u11 = [。5*exp(it22(d)0,5*exp(-15*idegree] 5expit22dh3 = plot(u1'linewidth',3; h4 = plot(u11,'linewidth’,3); pause(.001) end

> hua_t = [180:9:120*degree;

+ .8*i + B
(完整word)小人表白MATLAB代码

>> hua_u = exp(ihua_t) + 2/sqrt(3)*exp(ipi/6) >> hua_u1 = hua_uexpi*120*degree hua_u2 = hua_u1exp(i*120*degree > hua_uu = .09*hua_uhua_u1,hua_u2,-i*5 + i5); > hua_uu1 = u1(3) + hua_uu

>> t33 = -25:1515:-1-25*degree; for ee = 1:4

if ee == 4 t33 = -253:1515:—3:-20]degree; end for e = 1length(t33) delete(h3)

u1 = u2exp(i*t33(e) + 8*i + B; h3 = plot(u1,'linewidth'3) pause.001 end end h5 = fillrealhua_uu1),imaghua_uu1,’r’); > h6 = plot(hua_uu1,'r''linewidth'3); > pause(1) > C = CC

> t1 = 120-.5:100]degree;

>> t2 = linspace(120,180lengtht1))*degree; > t3 = linspace600,length(t1)*degree for f = 1:length(t1)

delete(h1)deleteh2;deleteh3;deleteh4);deleteh5);delete(h6; A1 = 5*exp(i*t1(f) + A B = .5*exp(i*t2f + A1 C1 = .5*exp(i*t3f) + C u = A A1 B C1 C];

E = [。3*expi.*(-90:270).degree)-1.3*i E = E + 13*i + B;

u1 = u2exp(it33(e) + .8*i + B u11 = .5*exp(i*t22(d)),05*exp(15*idegree)] .5*exp(it22d) + .8*i + B; hua_uu1 = u13 + hua_uu

h1 = plotu,’linewidth',3);h2 = plot(E,'linewidth',3; h3 = plotu1,’linewidth’,3)h4 = plotu11,'linewidth’,3); h5 = fillrealhua_uu1,imaghua_uu1),’r’); h6 = plot(hua_uu1,'r',’linewidth',3); pause(.001 end

> pause1)

> for g = 0:.03:4 axis([g 8 .3 33; pause(。01) end

>> pause(2 %逐行逐字输出文字 〉> TT = {’亲爱的’;..。 '你知道吗’;.


(完整word)小人表白MATLAB代码

’自打我那天第一次见你’;.. '我就把你刻在了心里';. ’我渐渐地明白';.

’我活着的全部意义’;.. '就是对你说’;.. '!!';.

’我要大声地喊出来'.. '我喜欢你!!’;... for a = 1length(TT(:,1) T = char(TT(a,:; for b = 1:length(T) hb) = text4.32length(T)/2 + b*。32 + 3.653{Tb)},’color',’r’,..。 'fontunits','normalized’,'fontsize'1 if a == lengthTT:1 pause(04 else pause(。13 end end

pause(1)

if a == lengthTT(1)-1 pause3) end

delete(h;h = [ end

col = 'y','m’,'c’,'r',’g’,’b',’k’, >> for b = 1555

s = mod(fix(rand1)*100)7) + 1 x = rand1)4 + 3; y = rand(1)3 text(xy{’我喜欢你'}'color’,char(cols)...
’fontunits','normalized’,’fontsize’,
rand1)*17;

> axis([4 8 -3 3.3] >> if bgt30 pause(02)

if modb20==19

fx = rand1)*sc3)*2/3 fy = rand1)*sc(4*2/3; figure( 'position'fxfysc(3/3sc(4)/3] setgca,’position’,[0 0 1 1] end


本文来源:https://www.wddqxz.cn/55acbe7873fe910ef12d2af90242a8956aecaaee.html

相关推荐