



下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、精選優(yōu)質文檔-傾情為你奉上 下面的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,. % 創(chuàng)建文本框 '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,. % 創(chuàng)建文本框 '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. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 衡水高二上數學試卷
- 衡陽市三年級數學試卷
- 貴州近五年中考數學試卷
- 2025年中國金絲楠木市場深度評估及行業(yè)投資前景咨詢報告
- 中國微波菱形盆行業(yè)市場發(fā)展前景及發(fā)展趨勢與投資戰(zhàn)略研究報告(2024-2030)
- 2025屆重慶市彭水一中高一物理第二學期期末復習檢測試題含解析
- 醫(yī)療美容監(jiān)督管理課件
- 落實董事會職權管理辦法
- 融媒體運營中心管理辦法
- 衡陽縣人口管理辦法規(guī)定
- 成都市錦江區(qū)2023年七年級《英語》下冊期末試卷與參考答案
- 工程勘察設計實施要點
- 備戰(zhàn)2025年中考英語時文閱讀2(含答案)
- 農戶果樹租賃合同范例
- 2025年安全意識培訓試題及答案
- DF3382EF備用電源自動投入裝置技術說明書(第三版藍圖說明書對應程序Ver4.04.004)
- 平安銀行擔保合同
- 2025年秋季學期初中安全工作計劃
- 弱電桿線下地遷移施工方案
- 2025年行政執(zhí)法證考試必考題庫及答案(共四套)
- 獸醫(yī)公共衛(wèi)生概論期末復習資料
評論
0/150
提交評論