下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、精选优质文档-倾情为你奉上 下面的MATLAB 程序以三维形式演示欧拉公式 Exp(t) = cos(t) + j sin(t)% % 本程序演示欧拉公式% Jan.25th,2012%h_fig1 = figure;set(h_fig1, 'unit', 'normalized', 'position', 0.1, 0.1, 0.9, 0.9);set(h_fig1, 'defaultuicontrolunits', 'normalized');h_text1 = uicontrol(h_fig1, 'S
2、tyle', 'text', 'Position', 0.71, 0.73, 0.25, 0.05,. % 创建文本框 'String', '是 cos 曲线的起点 ', 'ForegroundColor', 'r', 'FontName', '黑体',. 'FontSize', 12, 'FontWeight', 'Bold', 'BackgroundColor', 1, 1, 1); h_te
3、xt2 = uicontrol(h_fig1, 'Style', 'text', 'Position', 0.71, 0.78, 0.25, 0.05,. % 创建文本框 'String', '是 sin 和 exp 曲线的起点 ', 'ForegroundColor', 'r', 'FontName', '黑体',. 'FontSize', 12, 'FontWeight', 'Bold', '
4、BackgroundColor', 1, 1, 1); h_pushbutton1 = uicontrol(h_fig1, 'Style', 'PushButton', 'Position', 0.82, 0.12, 0.07, 0.06,. 'string', '退出', 'BackgroundColor', 0.8 0.9 0.8, 'ForegroundColor', 'r', 'FontSize', 14, 'FontWeigh
5、t', 'Bold',. 'callback', 'delete(h_fig1),') h_axes0 = axes('Box', 'on', 'Position', 0.15, 0.18, 0.56, 0.68, 'FontSize', 8) set(gcf,'color','w');w = 0.1*pit = 0:40; % 在前进方向绕了 2 圈% a = -ones(1,length(t);plot3(cos(w*t),t,sin(w*
6、t),'b', 'LineWidth', 2);grid on; hold on;hc = plot3(cos(w*t),t,a,'k-'); hold on;set(hc, 'Color', 'r', 'LineWidth', 2);a=-a;hs = plot3(a,t,sin(w*t),'r-.'); hold on;set(hs, 'Color', 'k', 'LineWidth', 2);text(0.7,0.3,0.6, &
7、#39; <- CCW', 'FontSize', 14, 'FontWeight', 'Bold');text(1,0,-1, ' Cos', 'Color', 'r', 'FontSize', 14, 'FontWeight', 'Bold');text(1,0,0, ' Sin', 'FontSize', 14, 'FontWeight', 'Bold');% xlab
8、el('x', 'FontSize', 14, 'FontWeight', 'Bold');ylabel('t', 'FontSize', 14, 'FontWeight', 'Bold');zlabel('y', 'FontSize', 14, 'FontWeight', 'Bold');title('演示欧拉公式 y = exp(jwt) = cos(wt) + jsin(wt)',
9、'Color', 'b', 'FontSize', 18, 'FontWeight', 'Bold');% line(-1,-1,39.9,39.9,-1,1,'LineWidth',3, 'Color', 'r');line(1,1,39.9,39.9,-1,1,'LineWidth',3, 'Color', 'r');line(-1,-1,0,0,-1,1,'LineWidth',3, 'Co
10、lor', 'r');line(1,1,0,0,-1,1,'LineWidth',3, 'Color', 'r');line(-1,-1,0,40,-1,-1,'LineWidth',3, 'Color', 'k');line(-1,1,0,0,-1,-1,'LineWidth',3, 'Color', 'b')line(-1,1,40,40,1,1,'LineWidth',3, 'Color',
11、 'b')line(-1,1,40,40,-1,-1,'LineWidth',3, 'Color', 'b')line(-1,1,0,0,1,1,'LineWidth',3, 'Color', 'b')line(-1,1,0,0,0,0,'LineWidth',2, 'Color', 'k');line(0,0,0,0,-1,1,'LineWidth',2, 'Color', 'k');l
12、ine(0,0,40,40,-1,1,'LineWidth',2, 'Color', 'k');line(0,0,0,40,0,0,'LineWidth',2, 'Color', 'k');line(-1,1,40,40,0,0,'LineWidth',2, 'Color', 'k');line(0,0,0,40,0,0,'LineWidth',2, 'Color', 'k');text(0,0,0.12,'O', 'FontSize', 14, 'FontWeight', 'Bold', 'Color',
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 骨灰塔施工方案(3篇)
- 燃料系统仿真项目可行性研究报告
- 技工学校时政题目及答案
- 2026年中国高强工业丝行业市场规模及投资前景预测分析报告
- 内儿科护理并发症预防
- 真空测试工岗前任职考核试卷含答案
- 农产品经纪人操作模拟考核试卷含答案
- 职业培训师创新意识模拟考核试卷含答案
- 酒精酿造工班组建设能力考核试卷含答案
- 井下配液工安全实操知识考核试卷含答案
- 《人工智能通识》高职人工智能教育全套教学课件
- 媒介融合抵抗形态-洞察及研究
- 《邻近营业线施工监测规程》
- 光伏运维管理制度
- 药店员工解除合同范本
- 近视防控能力建设课程知到智慧树章节测试课后答案2024年秋温州医科大学
- 人教版2024-2025学年四年级语文下册教学工作计划(及进度表)
- 《酬乐天》教学设计
- 医院卓越服务规范 (DB43 T 2925-2024)
- 河南省郑州市建筑职业技术学院2024年4月单招考试职测试题
- 《康复医学概论》课件-第三章 残疾学
评论
0/150
提交评论