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

正文內(nèi)容

matlab程序設(shè)計(jì)與應(yīng)用第二版實(shí)驗(yàn)參考答案(編輯修改稿)

2025-07-04 13:36 本頁面
 

【文章內(nèi)容簡(jiǎn)介】 。f2=sum(m)。end%在命令窗口中調(diào)用該函數(shù)文件如:y=mat7(40)/(mat7(30)+mat7(20))%實(shí)驗(yàn)六 高層繪圖操作%第一題:x=linspace(0,2*pi,101)。y=(+3*sin(x)./(1+x.^2)).*cos(x)。plot(x,y)%第二題:%(1)x=linspace(2*pi,2*pi,100)。y1=x.^2。y2=cos(2*x)。y3=y1.*y2。plot(x,y1,39。b39。,x,y2,39。r:39。,x,y3,39。y39。)。text(4,16,39。\leftarrow y1=x^239。)。text(6*pi/4,1,39。\downarrow y2=cos(2*x)39。)。text(*pi,*pi*pi,39。\uparrow y3=y1*y239。)。%(2)x=linspace(2*pi,2*pi,100)。y1=x.^2。y2=cos(2*x)。y3=y1.*y2。subplot(1,3,1)。%分區(qū)plot(x,y1)。title(39。y1=x^239。)。%設(shè)置標(biāo)題subplot(1,3,2)。plot(x,y2)。title(39。y2=cos(2*x)39。)。subplot(1,3,3)。plot(x,y3)。title(39。y3=x^2*cos(2*x)39。)。%(3)x=linspace(2*pi,2*pi,20)。y1=x.^2。subplot(2,2,1)。%分區(qū)bar(x,y1)。title(39。y1=x^2的條形圖39。)。%設(shè)置標(biāo)題subplot(2,2,2)。stairs(x,y1)。title(39。y1=x^2的階梯圖39。)。subplot(2,2,3)。stem(x,y1)。title(39。y1=x^2的桿圖39。)。subplot(2,2,4)。fill(x,y1,39。r39。)。%如果少了39。r39。則會(huì)出錯(cuò)title(39。y1=x^2的填充圖39。)。%其他的函數(shù)照樣做。%第三題x=5::5。y=[]。%起始設(shè)y為空向量for x0=xif x0=0 %不能寫成x0=0y=[y,(x0+sqrt(pi))/exp(2)]。 %將x對(duì)應(yīng)的函數(shù)值放到y(tǒng)中elsey=[y,*log(x0+sqrt(1+x0^2))]。endendplot(x,y)%第四題:a=input(39。a=39。)。b=input(39。b=39。)。n=input(39。n=39。)。t=2*pi::2*pi。r=a*sin(b+n*t)。polar(t,r)%第五題x=linspace(5,5,21)。y=linspace(0,10,31)。[x,y]=meshgrid(x,y)。%在[5,5]*[0,10]的范圍內(nèi)生成網(wǎng)格坐標(biāo)z=cos(x).*cos(y).*exp(sqrt(x.^2+y.^2)/4)。subplot(2,1,1)。surf(x,y,z)。subplot(2,1,2)。contour3(x,y,z,50)。%其中50為高度的等級(jí)數(shù),越大越密%第六題ezsurf(39。cos(s)*cos(t)39。,39。cos(s)*sin(t)39。,39。sin(s)39。,[0,*pi,0,*pi])。 %利用ezsurf隱函數(shù)shading interp %進(jìn)行插值著色處理%實(shí)驗(yàn)七 低層繪圖操作%第一題h=figure(39。MenuBar39。,39。figure39。,39。color39。,39。r39。,39。WindowButtonDownF39。,39。disp(39。39。Left Button Pressed39。39。)39。)%第二題x=2::2。y=x.^2.*exp(2*x)。h=line(x,y)。set(h,39。color39。,39。r39。,39。linestyle39。,39。:39。,39。linewidth39。,2)text(1,exp(2),39。y=x^2*exp(2*x)39。)%第三題t=0::。[t,x]=meshgrid(t)。v=10*exp(*x).*sin(2000*pi**x+pi)。axes(39。view39。,[,30])。h=surface(t,x,v)。title(39。v=10*exp(*x).*sin(2000*pi**x+pi)39。)。xlabel(Ct39。),ylabel(39。x39。),zlabel(39。v39。)%第四題x=0::2*pi。y1=sin(x)。y2=cos(x)。y3=tan(x)。y4=cot(x)。subplot(2,2,1)。plot(x,y1)。subplot(2,2,2)。plot(x,y2)。subplot(2,2,3)。plot(x,y3)。subplot(2,2,4)。plot(x,y4)。%第五題cylinder(5)。light(39。Position39。,[0,1,1])。material shiny%實(shí)驗(yàn)八 數(shù)據(jù)處理與多項(xiàng)式運(yùn)算%第一題%(1)A=rand(1,30000)。b=mean(A)std(A,0,2)%(2)max(A)min(A)%(3)n=0。for i=1:30000if A(i)n=n+1。endendp=n/30000%第二題%(1)A=45+51*rand(100,5)。[Y,U]=max(A)[a,b]=min(A)%(2)m=mean(A)s=std(A)%(3)sum(A,2)[Y,U]=max(ans)[a,b]=min(ans)%(4)[zcj,xsxh]=sort(ans)%第三題h=6:2:18。x=:2:。t1=[18,20,22,25,30,28,24]。t2=[15,19,24,28,34,32,30]。T1=spline(h,t1,x)T2=spline(h,t2,x
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1