首页 matlab新年快乐动图代码

matlab新年快乐动图代码

举报
开通vip

matlab新年快乐动图代码%fort=0:0.2:30%  holdon%  plot(t,1,'^g')%endfort=0.8:0.1:12.2holdonplot(t,0.5,'^g')ift==1plot(1,2:0.1:4,'g*')endift>1&&t2.95&&t4&&t3.5&&t6&&t8&&t10&&t11&&t14&&t16&&t17.95&&t<18.5plot...

matlab新年快乐动图代码
%fort=0:0.2:30%  holdon%  plot(t,1,'^g')%endfort=0.8:0.1:12.2holdonplot(t,0.5,'^g')ift==1plot(1,2:0.1:4,'g*')endift>1&&t<2plot(t,3,'g*')endpause(.1)axis([t-18t505])ift==2plot(2,2:0.1:4,'g*')endift>2.95&&t<4.1plot(t,2*t-4,'g*')endift>4&&t<5.1plot(t,-2*t12,'g*')endift>3.5&&t<4.5plot(t,3,'g*')endift==6plot(6,2:0.1:4,'g*')endift>6&&t<7||t==7plot(t,cos(pi/2*(t-6))/23.5,'g*')plot(t,-cos(pi/2*(t-6))/23.5,'g*')endift==8plot(8,2:0.1:4,'g*')endift>8&&t<9.1plot(t,cos(pi/2*(t-8))/23.5,'g*')plot(t,-cos(pi/2*(t-8))/23.5,'g*')endift>10&&t<11plot(t,-t14,'g*')end%  ift==11%    plot(11,2:0.1:4,'g*')%  endift>11&&t<12.1plot(t,t-8,'g*')plot(11,2:0.1:3,'g*')endend%HAPPY%NEWfort=13:0.1:17.2holdonpause(.1)plot(t,0.5,'^g')axis([t-18t505])ift==14plot(14,2:0.1:4,'g*')endift>14&&t<15plot(t,-2*t32,'g*')endift==15plot(15,2:0.1:4,'g*')endift==16plot(16,2:0.1:4,'g*')endift>16&&t<17.1plot(t,2,'g*')plot(t,3,'g*')plot(t,4,'g*')endendfort=17.8:0.05:20.2holdonpause(.1)plot(t,0.5,'^g')axis([t-18t505])ift>17.95&&t<18.5plot(t,-4*t76,'g*')endift>18.45&&t<19.05plot(t,4*t-72,'g*')endift>19&&t<19.5plot(t,-4*t80,'g*')endift>19.45&&t<20.05plot(t,4*t-76,'g*')endend%YEARfort=21:0.1:28holdonpause(.1)plot(t,0.5,'^g')axis([t-12t505])ift>20.9&&t<22plot(t,-t25,'g*')endift>22&&t<23.1plot(t,t-19,'g*')endift==22plot(t,2:0.1:3,'g*')endift==24plot(t,2:0.1:4,'g*')endift>24&&t<25.1plot(t,2,'g*')plot(t,3,'g*')plot(t,4,'g*')endift>25.9&&t<27plot(t,2*t-50,'g*')endift>26.9&&t<28.1plot(t,-2*t58,'g*')endift>26.5&&t<27.5plot(t,3,'g*')endendfort=29:0.1:30.1plot(t,0.5,'^g')ift==29plot(t,2:0.1:4,'g*')endift>29&&t<30.1plot(t,-t32,'g*')endift>29&&t<30.1plot(t,1/2*cos(pi/2*(t-29))3.5,'g*')plot(t,-1/2*cos(pi/2*(t-29))3.5,'g*')endend
本文档为【matlab新年快乐动图代码】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_686908
暂无简介~
格式:doc
大小:19KB
软件:Word
页数:10
分类:
上传时间:2022-08-04
浏览量:12