freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

matlab上機(jī)實(shí)驗(yàn)實(shí)驗(yàn)報(bào)告[合集五篇]-在線瀏覽

2024-11-12 21:24本頁面
  

【正文】 矩陣而得、以 G 為子矩陣用復(fù)制函數(shù)(repmat)生成得大矩陣H。D] E =10000008〉〉 F=(2:5,:)??? F=(2:5,:)Error: Expression or statement is incorrect—possibly unbalanced(, {, or [、>〉 F=E(2:5,:)F =0000〉〉 G=respace(E,3,4)??? Undefined mand/function “respace’、〉G=respace(F,3,4)??? Undefined mand/function ”respace“、〉 G=reshape(F,3,4)G =001600〉〉 H=repmat(G,2,2)H =000508007000310100100002)矩陣得運(yùn)算 ? 矩陣得加減、數(shù)乘與乘法已知矩陣: A=[1 2-1], A =1 〉 B=[1 02] B =0〉 A+B ans =041 〉〉 2*A ans =42 〉 2*A-3*B ans =8 〉〉 A*B ans =44—2 ? 矩陣得逆矩陣 〉〉 format rat。3 1 4;2 2 1],b=[1 1 2],d=b’ a =132b =1d =11 c1=b*inv(a),c2=b/a c1 =6/73/7-4/7c2 =6/73/7-4/7 c3=inv(a)*d, c4=ab c3 =2/74/7??? Error using ==〉 mldivide Matrix dimensions must agree、〉 c3=inv(a)*d,c4=ad c3 =2/7-4/7c4 =2/74/7練習(xí): 按下列要求求出各種得矩陣運(yùn)算得值求矩陣得秩、特征值與特征向量、矩陣得乘冪與開方。4 5 6。A2=reshape([10:18],3,3)A2 =10131614171215〉〉 T1(:,:,1)=ones(3);T1(:,:,2)=zeros(3)T1(:,:,1)=111T1(:,:,2)=000000000 〉 T2=ones(3,3,2)T2(:,:,1)=111 T2(:,:,2)=111 T3=cat(3,A1,A2),T4=repmat(A1,[1,1,2])T3(:,:,1)=T3(:,:,2)=1013161715T4(:,:,1)=268T4(:,:,2)=782)多維數(shù)組得創(chuàng)建數(shù)組運(yùn)算用小圓點(diǎn)加在運(yùn)算符得前面表示,以區(qū)分矩陣得運(yùn)算?!怠?A=[1:6]。 C1=A+B,C2=A—B C1 =2C2 =03 C3=A、*B,C4=B、/A,C5=A、B C3 =6 C4 =1、00000、50000、33330、25000、20000、1667 C5 = 00000、50000、33325000、20000、1667關(guān)系運(yùn)算或邏輯運(yùn)算得結(jié)果都就是邏輯值.>〉 I=A〉3,C6=A(I)I =00011 C6 =46 〉〉 A1=A3,I2=A1&A A1 =—2—102I2 =1101〉〉 I3=~I I3 =1000 1)字符串得創(chuàng)建>〉 S1=”Ilike MATLAB’ S1 = Ilike MATLAB >> S2=“I'’m a stuent、” S2 = I“m a stuent、〉 S3=[S2,”and’,S1] S3 = I“m a stuent、andIlike MATLAB 2)求字符串長(zhǎng)度 〉〉 length(S1)ans = size(S1)ans =13)字符串與一維數(shù)值數(shù)組得相互轉(zhuǎn)換 CS1=abs(S1)CS1 =10132658466 〉 CS2=double(S1)CS2 =10810510132776576 char(CS2)ans = Ilike MATLAB setstr(CS2)ans = Ilike MATLAB 練習(xí):用char()與向量生成得方法創(chuàng)建如下字符串AaBbCc、XxYyZz、〉 S1=65:90?!怠?C=[S1。C=C(:)’。char(S3)ans = AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz 實(shí)驗(yàn)三MAL TAB B 數(shù)值運(yùn)算 一、實(shí)驗(yàn)?zāi)康谜莆?MATLAB 得數(shù)值運(yùn)算及其運(yùn)算中所用到得函數(shù),掌握結(jié)構(gòu)數(shù)組與細(xì)胞數(shù)組得操作。2)多項(xiàng)式插值與擬合。4)結(jié)構(gòu)數(shù)組與細(xì)胞數(shù)組。在 MATLAB 中,: 在 MATLAB 中表示為 s=[1 35 0 9] 2)多項(xiàng)式得加減法相當(dāng)于向量得加減法,但必須注意階次要相同。如多項(xiàng)式與多項(xiàng)式相加?!担?s1=[2 3 11] > s2=[1 3 —5 4 7] 〉 s3=conv(s1,s2) s4=deconv(s3,s1)答?!?s1=[2 4 2] roots(s1)答。s1 =23 ans =90 x =16910 y =Columns 1 through 81933525798861285Columns 9 through 10 練習(xí):求得“商”及余數(shù).〉 s1=[1 0 1];s2=[1 3]。附表 1-1 X 1 2 3 4 5 6 7 8 9 10 Y 16 32 71分別用擬合(二階至三階)與插值(線性與三次樣條)得方法來估算X=5 時(shí) Y 得值?!?x=1:10 〉 y=[16 32 70 142 260 436 682 1010 1342 1960] 〉 p1=polyfit(x,y,1)%一階擬合 y1=polyval(p1,5)%計(jì)算多項(xiàng)式 P1 在x=9、5 得值 答。>〉 x=1:2:9 〉〉 diff(x)答?!?x=linspace(0,2*pi,100)。〉〉 x=ones(1,10)> cumsum(x)> x=linspace(0,pi,100); > y=sin(x); 〉〉 trapz(x,y)〉 p=cumsum(y); p(100)*pi/(100—1)答。地圖得數(shù)據(jù)見附表 1—2(單位mm).附表 1—2 X 7 5 13 17、5 34 40、5 45 48 56 61 65 75 80、5 91 Y1 44 45 47 534 41 45 46 Y2 44 59 718 1 18 續(xù)表 X 96 101 104 105 115 118 125 1 35 142 146 150 157 158 Y1 43 37 33 28 32 65 55 54 52 50 66 66 68 Y2 121 124 1 21 1 21 121 116 1 22 83 81 82 86 85 68 提示:由高等數(shù)學(xué)得知識(shí),一條曲線得定積分就是它與 x 軸所圍成得面積,那么兩條曲線所圍成得面積可由兩條曲線得定積分相減得到。〉〉 student、name=’Jack”?!怠?student(2)、name=’Lucy“; student 或者用 struct 函數(shù)創(chuàng)建。答?!?student(1)、subject=[]%添加 subject 域并賦予空值 〉〉 student(1)、score=[] 〉(studeng)〉fieldnames(studeng)〉fieldnames(student)〉〉 getfield(student,{2},'name')〉〉 student=rmfield(student,”subject’)%刪除 subject 域 〉〉 student=setfield(student,{1},“score’,90)。結(jié)構(gòu)數(shù)組得大小為 22?!?A={’How are you!”,ones(3)。%直接創(chuàng)建〉〉 B(1,1)={’Hello world”};%由各個(gè)細(xì)胞元素創(chuàng)建 B(1,2)={magic(3)}。答或者用cell 函數(shù)先創(chuàng)建空得細(xì)胞數(shù)組,然后再給各個(gè)元素賦值 c=cell(1,2); c(1,1)={’Hello world’}?!?ans1=A(1,1)> ans2=A(1,1)〉 whos ans1 ans2 〉〉 celldisp(A)〉 a1=A{2,1}(1,2)〉 [a2 a3]=deal(A{1:2})答;ans1 =’How are you!’ ans2 =’How are you!’NameSizeBytesClassAttributesans11x184cellans21x184cellA{1,1} = How are you!A{2,1} =A{1,2} =1A{2,2}{1} = cell a1 =a2 = How are you!a3 =12實(shí)驗(yàn)四MA LT AB B 符號(hào)運(yùn)算一、實(shí)驗(yàn)?zāi)康谜莆辗?hào)變量與符號(hào)表達(dá)式得創(chuàng)建,掌握MALTAB得symbol工具箱得一些基本運(yùn)用。2)符號(hào)微積分運(yùn)算.3))、實(shí)驗(yàn)步驟符號(hào)運(yùn)算得引入在數(shù)值運(yùn)算中如果求,則可以不斷讓得讓x趨近0,一球得表達(dá)式趨近什么數(shù),但終究不能令 x=0,因?yàn)樵跀?shù)值運(yùn)算中 0 不就是能作除數(shù)得。輸入如下命令: 〉 f=sym(’sin(pi*x)/x') limit(f,’x“,0)答;f = sin(pi*x)/x ans = pi 2 符號(hào)常量、符號(hào)變量、符號(hào)表達(dá)式得創(chuàng)建1)使用 sym()創(chuàng)建 輸入以下命令,觀察 Workspace 中 A、B、f就是什么內(nèi)性得數(shù)據(jù),占用多少字節(jié)得內(nèi)存空間。A = 1 B = x f = 2*x^2+3*x1 f1 = 1+2 f2 = 3 f2 = 3 f4 = 2*x+3 x =f4 = 5 通過瞧 MATLAB 得幫助可知,sym()得參數(shù)可以使字符串或就是數(shù)值類型,無論就是哪種類型都會(huì)生成符號(hào)類型數(shù)據(jù)。x = x y = y z = z f1 = x^2+2*x+1 f2 = exp(y)+exp(z)^2 f3 = x^2+2*x+1+exp(y)+exp(z)^2 3 符號(hào)矩陣創(chuàng)建〉 syms a1 a2 a3 a4 〉〉 A=[a1 a2。A = [ a1,a2] [ a3, a4] ans = a1 ans = a2 4 符號(hào)算術(shù)運(yùn)算1)符號(hào)向量相乘、相除 符號(hào)量相成與數(shù)值量相乘一樣,分成矩陣乘與數(shù)組乘。B=sym([3 4 5])。b 3]。〉> C1=A*B,C2=A、*B 〉 C3=AB,C4=A、/B 答;c1 =35 c2 = 5/7 C1 = [ 15, 20, 25] C2 = [ 3/5, 4/5,1] C1 = [ 10*a+2*a*b,5*b+a^2] [2*a*b+6*b,b^2+3*a] C2 = [10*a,a*b] [ 2*b^2,3*a] C3 = [2*a*(b—3)/(—15+a*b),(a^23*b)/(—15+a*b)] [2*b*(a5)/(15+a*b), —(5*ab^2)/(15+a*b)] C4 = [ 5/2/a,a/b] [1/2, 3/a] 2)符號(hào)數(shù)值任意精度控制與運(yùn)算 任意精度得 VPA 運(yùn)算可以使用命令 digits(設(shè)定默認(rèn)得精度)與vpa(對(duì)指定對(duì)象以新得精度進(jìn)行計(jì)算)來實(shí)現(xiàn)。3)符號(hào)類型與數(shù)值類型得轉(zhuǎn)換 使用命令sym可以把數(shù)值型對(duì)象轉(zhuǎn)換成有理數(shù)性符號(hào)對(duì)象,命令vpa可以講數(shù)值型對(duì)象轉(zhuǎn)換為任意精度得 VPA 型符號(hào)對(duì)象.使用 double,numeric 函數(shù)可以將有理數(shù)型與 VPA 型符號(hào)對(duì)象轉(zhuǎn)換成數(shù)值對(duì)象、〉> clear 〉 a1=sym('2*sqrt(5)+pi’)
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1