歐拉公式的三維演示_第1頁
歐拉公式的三維演示_第2頁
歐拉公式的三維演示_第3頁
歐拉公式的三維演示_第4頁
全文預(yù)覽已結(jié)束

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、精選優(yōu)質(zhì)文檔-傾情為你奉上 下面的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 曲線的起點(diǎn) ', '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 曲線的起點(diǎn) ', '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; % 在前進(jìn)方向繞了 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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論