已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
fill 6 7 7 6 5 5 0 0 0 0 5 0 右边竖条的填充 hold on 保持当前图形及轴系的所有特性 fill 2 6 6 2 3 3 0 0 0 0 5 0 左边竖条的填充 hold on 保持当前图形及轴系的所有特性 t1 0 pi 60 pi plot 4 2 sin t1 pi 2 5 2 cos t1 pi 2 绘制中间的凹弧图 形 grid 添加网格线 axis 0 9 0 9 定义坐标轴的比例 axis off 关闭所有轴标注 标记 背景 fill 1 2 2 1 5 5 0 0 0 0 5 0 中间长方形的填充 hold on 保持当前图形及轴系的所有特性 title 31608118 定义图题 x0 6 y0 5 head1 line x0 y0 color r linestyle erasemode x or markersize 30 head2 line x0 y0 color r linestyle erasemode x or markersize 50 设置小球颜色 大小 线条的擦拭方式 t 0 设置小球的初始值 dt 0 001 设置运动周期 t1 0 设置大球的初始值 dt1 0 001 while 1 条件表达式 t t dt x1 9 1 t y1 5 x3 6 y3 5 if t 0 x2 6 y2 5 设置小球的运动轨迹 end if t 2 8 t t dt a sin t 3 x1 6 1 y1 5 1 x3 4 2 sin 1 5 a y3 5 2 cos 1 5 a 设置大球的运动轨迹 end set head1 xdata x1 ydata y1 设置球的运动 set head2 xdata x3 ydata y3 drawnow end 2 matlab 时钟动画 将下列命令复制到程序运行窗口 try 可以运行 close all hfig figure visible off set hfig NumberTitle off set hfig name My Clock set hfig MenuBar none set hfig color 0 5 0 7 0 3 set hfig visible on A linspace 0 6 3 1000 x1 8 cos A y1 8 sin A x2 7 cos A y2 7 sin A plot x1 y1 b linewidth 1 4 hold on plot x2 y2 b linewidth 3 5 fill 0 4 cos A 0 4 sin A r axis off axis 10 10 10 10 axis equal set gca position 0 13 0 05 0 775 0 815 title date fontsize 18 for k 1 12 xk 9 cos 2 pi 12 k pi 2 yk 9 sin 2 pi 12 k pi 2 plot xk 9 8 xk 9 7 yk 9 8 yk 9 7 color 0 3 0 8 0 9 h text xk yk num2str k fontsize 16 color 0 9 0 3 0 8 HorizontalAlignment center end 计算时针位置 ti clock th ti 4 ti 5 60 ti 6 3600 12 2 pi pi 2 xh3 4 0 cos th yh3 4 0 sin th xh2 xh3 2 0 5 cos th pi 2 yh2 yh3 2 0 5 sin th pi 2 xh4 xh3 2 0 5 cos th pi 2 yh4 yh3 2 0 5 sin th pi 2 hh fill 0 xh2 xh3 xh4 0 0 yh2 yh3 yh4 0 0 6 0 5 0 3 计算分针位置 tm ti 5 ti 6 60 60 2 pi pi 2 xm3 6 0 cos tm ym3 6 0 sin tm xm2 xm3 2 0 5 cos tm pi 2 ym2 ym3 2 0 5 sin tm pi 2 xm4 xm3 2 0 5 cos tm pi 2 ym4 ym3 2 0 5 sin tm pi 2 hm fill 0 xm2 xm3 xm4 0 0 ym2 ym3 ym4 0 0 6 0 5 0 3 计算秒针位置 ts ti 6 60 2 pi pi 2 hs plot 0 7 cos ts 0 7 sin ts color 0 6 0 5 0 3 linewidth 3 set gcf doublebuffer on k 1 while k 6 ti clock 计算时针位置 th ti 4 ti 5 60 ti 6 3600 12 2 pi pi 2 xh3 4 0 cos th yh3 4 0 sin th xh2 xh3 2 0 5 cos th pi 2 yh2 yh3 2 0 5 sin th pi 2 xh4 xh3 2 0 5 cos th pi 2 yh4 yh3 2 0 5 sin th pi 2 set hh XData 0 xh2 xh3 xh4 0 YData 0 yh2 yh3 yh4 0 计算分针位置 tm ti 5 ti 6 60 60 2 pi pi 2 xm3 6 0 cos tm ym3 6 0 sin tm xm2 xm3 2 0 5 cos tm pi 2 ym2 ym3 2 0 5 sin tm pi 2 xm4 xm3 2 0 5 cos tm pi 2 ym4 ym3 2 0 5 sin tm pi 2 set hm XData 0 xm2 xm3 xm
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 演艺服装熨烫整 理技师(中级)考试试卷及答案
- 研学基地票务接待专员岗位招聘考试试卷及答案
- 烟草用香精调香助理工程师岗位招聘考试试卷及答案
- 2026年山东省寿光市高二生物下册期末考试测试卷附完整答案【全优】
- 2026年浙江省诸暨市高二生物下册期末考试模拟卷及完整答案【历年真题】
- 2025年江苏省东台市高二生物下册期末考试试卷【A卷】附答案
- 2025年湖北省赤壁市高二生物下册期末考试检测卷【轻巧夺冠】附答案
- 2025年江苏省扬中市高二生物下册期末考试检测卷带答案(巩固)
- 2025年江西省庐山市高二生物下册期末考试检测卷含完整答案(夺冠)
- 2025年辽宁省瓦房店市高二生物下册期末考试模拟卷【各地真题】附答案
- 2026年辽宁锦州海通实业有限公司计划招录28人备考题库及答案详解参考
- 2026年西安工业大学招聘备考题库(14人)含答案详解
- 2026青海数字经济发展集团有限公司社会招聘9人笔试参考题库及答案详解
- 2026福建中考语文作文考前专项练习(题目+范文)
- 2024-2025学年上海市黄浦区七年级(下)期末数学试卷(含解析)
- 2026年安徽省体育彩票管理中心编外聘用人员公开招聘11名考试参考题库及答案解析
- 2026年《中华民族共同体概论》第13讲先锋队与中华民族独立解放(1919-1949)新版课件
- 2026年江西高考化学题库及答案
- 2026年贪污贿赂刑事案件司法解释(二)课件
- 2025-2026学年沪语童谣教案
- 电子屏安全责任制度
评论
0/150
提交评论