亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

plot

  • 批處理感知器算法

    批處理感知器算法的代碼matlab w1=[1,0.1,1.1;1,6.8,7.1;1,-3.5,-4.1;1,2.0,2.7;1,4.1,2.8;1,3.1,5.0;1,-0.8,-1.3;     1,0.9,1.2;1,5.0,6.4;1,3.9,4.0]; w2=[1,7.1,4.2;1,-1.4,-4.3;1,4.5,0.0;1,6.3,1.6;1,4.2,1.9;1,1.4,-3.2;1,2.4,-4.0;     1,2.5,-6.1;1,8.4,3.7;1,4.1,-2.2]; w3=[1,-3.0,-2.9;1,0.5,8.7;1,2.9,2.1;1,-0.1,5.2;1,-4.0,2.2;1,-1.3,3.7;1,-3.4,6.2;     1,-4.1,3.4;1,-5.1,1.6;1,1.9,5.1]; figure; plot(w3(:,2),w3(:,3),'ro'); hold on; plot(w2(:,2),w2(:,3),'b+'); W=[w2;-w3];%增廣樣本規范化 a=[0,0,0]; k=0;%記錄步數 n=1; y=zeros(size(W,2),1);%記錄錯分的樣本 while any(y<=0)     k=k+1;     y=a*transpose(W);%記錄錯分的樣本     a=a+sum(W(find(y<=0),:));%更新a     if k >= 250         break     end end if k<250     disp(['a為:',num2str(a)])      disp(['k為:',num2str(k)]) else      disp(['在250步以內沒有收斂,終止']) end %判決面:x2=-a2*x1/a3-a1/a3 xmin=min(min(w1(:,2)),min(w2(:,2))); xmax=max(max(w1(:,2)),max(w2(:,2))); x=xmin-1:xmax+1;%(xmax-xmin): y=-a(2)*x/a(3)-a(1)/a(3); plot(x,y)

    標簽: 批處理 算法matlab

    上傳時間: 2016-11-07

    上傳用戶:a1241314660

  • 重力異常正演MATLAB程序

    %球體 close all; G=6.67e-11; R=2;%球體半徑 p=4.0;%密度 D=10.0;%深度 M=(4/3)*pi*R^3*p;%質量 x=-20:1:20; g=G*M*D./((x.^2+D^2).^(3/2)); Vxz=-3*G*M*D.*x./((x.^2+D^2).^(5/2)); Vzz=G*M.*(2*D^2-x.^2)./((x.^2+D^2).^(5/2)); Vzzz=3*G*M.*(2*D^2-3.*x.^2)./((x.^2+D^2).^(7/2)); subplot(2,2,1) plot(x,g,'k-'); xlabel('水平距離(m)'); ylabel('重力異常值'); title('球體重力異常Δg'); grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距離(m)'); ylabel('導數值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距離(m)'); ylabel('導數值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距離(m)'); ylabel('導數值'); title('Vzzz'); grid on %% %水平圓柱體 close all G=6.67e-11; p=10.0;%線密度 D=100.0;%深度 x=-200:1:200; g=G*2*p*D./(x.^2+D^2); Vxz=4*G*p*D.*x./(x.^2+D^2).^2; Vzz=2*G*p.*(D^2-x.^2)./(x.^2+D^2).^2; Vzzz=4*G*p.*(D^2-3.*x.^2)./((x.^2+D^2).^3); subplot(2,2,1) plot(x,g,'k-'); xlabel('水平距離(m)'); ylabel('重力異常值'); title('水平圓柱體重力異常Δg'); grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距離(m)'); ylabel('導數值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距離(m)'); ylabel('導數值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距離(m)'); ylabel('導數值'); title('Vzzz'); grid on %% %垂直臺階 G=6.67e-11; p=4.0;%密度 h1=50.0;%下層深度 h2=40.0;%上層深度 x=-100:1:100; g=G*p.*(pi*(h1-h2)+x.*log((x.^2+h1^2)./(x.^2+h2^2))+2*h1.*atan(x./h1)-2*h2.*atan(x./h2)); Vxz=G*p.*log((h1^2+x.^2)./(h2^2+x.^2)); Vzz=2*G*p.*atan((x.*(h1-h2))./(x.^2+h1*h2)); Vzzz=2*G*p.*x*(h1^2-h2^2)./((h1^2+x.^2).*(x.^2+h2^2)); subplot(2,2,1) plot(x,g,'k-'); xlabel('水平距離(m)'); ylabel('重力異常值'); title('垂直臺階重力異常Δg'); grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距離(m)'); ylabel('導數值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距離(m)'); ylabel('導數值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距離(m)'); ylabel('導數值'); title('Vzzz'); grid on %% %傾斜臺階 G=6.67e-11; p=4.0;%密度 h1=50.0;%下層深度 h2=40.0;%上層深度 a=pi/6;%傾斜角度 x=-500:1:500; g=G*p.*(pi*(h1-h2)+2*h1.*atan((x+h1*cot(a))./h1)-2*h2.*atan((x+h2*cot(a))./h1)+x.*sin(a)^2.*log(((h1+x.*sin(a).*cos(a)).^2+x.^2.*sin(a)^4)./((h2+x.*(sin(a)*cos(a))).^2+x.^2.*sin(a)^4))); Vxz=G*p.*(sin(a)^2.*log(((h1*cot(a)+x).^2+h1^2)./((h2*cot(a)+x).^2+h2^2))-2*sin(2*a).*(atan((h1/sin(a)+x.*cos(a))./(x.*sin(a)))-atan((h2/sin(a)+x.^cos(a))./(sin(a).*x)))); Vzz=G*p.*(0.5*sin(2*a)^2.*log(((h1*cot(a)+x).^2+h1^2)./((h2*cot(a)+x).^2+h2^2))+2*sin(a)^2.*(atan((h1/sin(a)+x.*cos(a))./(x.*sin(a)))-atan((h2/sin(a)+x.*cos(a))./(x.*sin(a))))); Vzzz=2*G*p*sin(a)^2.*((x+2*h2*cot(a))./((h2*cot(a)+x).^2+h2^2)-(x+2*h1*cot(a))./((h1*cot(a)+x).^2+h1^2)); subplot(2,2,1) plot(x,g,'k-'); xlabel('水平距離(m)'); ylabel('重力異常值'); title('傾斜臺階重力異常Δg'); grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距離(m)'); ylabel('導數值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距離(m)'); ylabel('導數值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距離(m)'); ylabel('導數值'); title('Vzzz'); grid on %% %鉛錘柱體 G=6.67e-11; p=4.0;%密度 h1=50.0;%下層深度 h2=40.0;%上層深度 a=3;%半徑 x=-500:1:500; g=G*p.*((x+a).*log(((x+a).^2+h1^2)./((x+a).^2+h2^2))-(x-a).*log(((x-a).^2+h1^2)./((x-a).^2+h2^2))+2*h1.*(atan((x+a)./h1)-atan((x-a)./h1))-2*h2.*(atan((x+a)./h2)-atan((x-a)./h2))); Vxz=G*p.*log((((x+a).^2+h1^2).*((x-a).^2+h2^2))./(((x+a).^2+h2^2).*((x-a).^2+h1^2))); Vzz=2*G*p.*(atan(h1./(x+a))-atan(h2./(x+a))-atan(h1./(x-a))+atan(h2./(x-a))); Vzzz=2*G*p.*((x+a)./((x+a).^2+h2^2)-(x+a)./((x+a).^2+h1^2)-(x-a)./((x-a).^2+h2^2)+(x-a)./((x-a).^2+h1^2)); subplot(2,2,1) plot(x,g,'k-'); xlabel('水平距離/m') ylabel('重力異常值') title('鉛垂柱體重力異常') grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距離(m)'); ylabel('導數值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距離(m)'); ylabel('導數值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距離(m)'); ylabel('導數值'); title('Vzzz'); grid on

    標簽: MATLAB 重力 程序

    上傳時間: 2019-05-10

    上傳用戶:xiajiang

  • 實用模擬電路設計 (Marc T. Thompson)

    本書是 Marc Thompson 博士 20 年模擬電路設計和教學經驗的總結,講述了模擬電路與系統設計中常用的直觀分析方法。本書提出了“模擬電路直觀方法學”,力圖幫助學生和設計人員擺脫復雜的理論推導與計算,充分利用直觀知識來應對模擬電路工程設計挑戰。全書共分為 16 章,內容涵蓋了二極管、晶體管、放大器、濾波器、反饋系統等模擬電路的基本知識與設計方法。本書大綱第 1 章與第 2 章為介紹性材料。第 1 章是本書的引言,同時介紹了模擬電路設計的發展動機,其中引用了一些精選的歷史事件。第 2 章講述后續章節中用到地重要的信號處理概念,以使讀者們能夠跟上作者的思路。第 3 章至第 8 章講述雙極性器件的物理學原理、雙極性結型晶體管 (bipolar junction transistor, BJT) 、晶體管放大器,以及用于帶寬估計與開關速度分析的近似技術。第 9 章講述 CMOS 管和 CMOS 管放大器的基礎知識。前面章節介紹的用于放大器設計的帶寬估計技術也同樣適用于 CMOS 管器件。第 10 章講述 晶體管的開關效應。晶體管是如何實現導通和關閉呢?又如何估計它的開關速度呢?第 11 章回顧反饋系統 (feedback system) 的基本知識以及設計穩定反饋系統的伯德圖 / 相位裕度方法 (Bod plot / phase margin) 。第 12 章和第 13 章講述實際運算放大器的設計、使用和限制,包括電壓反饋 (voltage-feedback) 以及電流反饋 (current-feedback) 放大器。第 14 章講述模擬低通濾波器設計的基本知識,包括巴特沃思 (Butterworth) 、切比雪夫 (Chebyshev) 、橢圓 (elliptic) 以及貝塞爾 (Bessel) 濾波器的無源梯形實現和胡源實現。第 15 章講述實際電路設計問題,比如 PCB 版圖設計規則、無源器件的使用和限制等。第 16 章是一些有用的設計技術和設計技巧的大雜燴,這些內容又不適合放在其他章節,所以作為獨立的章節進行講述。一些說明性的分析問題以及 MATLAB 和 SPICE 設計示例點綴在全書的字里行間,以幫助讀者理解本書的內容。

    標簽: 模擬電路

    上傳時間: 2022-02-14

    上傳用戶:

  • Ansoft0MaxwellV12電機瞬態分析教程

    This Getting Started Guide is written for Maxwell beginners and experienced users who would like to quickly re familiarize themselves with the capabilities of MaxwelL.This guide leads you step-by-step through solving and analyzing the results of a rotational actuator magnetostatic problem with motion By following the steps in this guide, you will learn how to perform the following tasks Modify a models design parameters y Assign variables to a model's design parameters.Specify solution settings for a design Validate a designs setupRun a maxwell simulation v plot the magnetic flux density vecto v Include motion in the simulation本《入門指南》是為希望快速重新熟悉MaxwelL功能的Maxwell初學者和有經驗的用戶編寫的。本指南將引導您逐步解決和分析旋轉致動器靜運動問題的結果。按照本指南中的步驟,您將學習如何執行以下任務。修改模型設計參數y將變量分配給模型的設計參數。指定設計的解決方案設置驗證設計設置運行maxwell模擬v繪制磁通密度vecto v在模擬中包含運動

    標簽: ansoft maxwell

    上傳時間: 2022-03-10

    上傳用戶:

  • 學習用PSPICE設計模電實驗

    1.創建一個新項目:激活Design Manager,在菜單File中選擇New Workspace,然后填入項目名稱expl。2.輸入網單文件:在Tools菜單中選擇TextEdit,輸入如下所示的網單文件。3.保存文件:將文件命名為expl.cir。4.對電路進行模擬:在Tools菜單中選擇PspiceA/D,再在PspiceA/D的File菜單中選擇Open,打開已保存過的輸入文件expl.cir。5.檢查出錯:如果文件中出現了語法錯誤,PspiceA/D就會彈出錯誤提示框,并運行Message Viewer,告訴用戶錯誤信息。如果輸入文件沒有語法錯誤,PspiceA/D就顯示正確模擬的對話框,如圖3-3類似,從圖中可讀出電路標題、元器件個數以及計算中所耗內存信息。6.查看輸出文件:在File菜單中選擇Examine 0utput,就可以通過Text Editor來瀏覽輸出文件。輸出文件中的各節點電壓如下所示。由此可得出如下所示的靜態工作點參數:Vw=2.9646V,Vow=7.1878-2.1919=4.9959V,Tg=Va/R.=2.1919/2.3=0.953mA。7.觀察輸出波形:在PspiceA/D的File菜單中選擇Run Probe,或者在Design Manager 中選擇Tools下的Probe,都可以調出Probe。Probe自動設置橫坐標,縱坐標必須通過手動添加。在菜單Trace中選擇Add,在Add Traces對話框的Trace Expression中輸入V(6)/V(1),測量放大倍數。8.在Probe中,單擊plot菜單下的Add YAxis,增加一個新縱軸。9.單擊Trace菜單下的Add,在Trace Expression中輸入V(1)/I(V1),測量輸入電阻,輸出曲線如圖2-2所示。

    標簽: pspice

    上傳時間: 2022-07-02

    上傳用戶:

主站蜘蛛池模板: 奈曼旗| 湟源县| 永顺县| 瓦房店市| 昭觉县| 招远市| 湟源县| 大同县| 中方县| 万州区| 额敏县| 阜康市| 彩票| 会理县| 临清市| 景谷| 泗阳县| 灌云县| 佛冈县| 辽宁省| 钦州市| 河东区| 新竹市| 凤阳县| 河源市| 新密市| 于都县| 华容县| 沧源| 平舆县| 锡林浩特市| 嘉义县| 石狮市| 朝阳市| 龙井市| 天祝| 宁阳县| 中江县| 思茅市| 临洮县| 峨边|