Matlab数学实验(胡良剑)1.x=81,70,65,51,76,66,90,87,61,77;a=mean(x)b=std(x)2.s=0;forn=0:100s=s+log(1+n);ifs100break;endendn3.F=1,1;forn=3:100F(n)=F(n-1)+F(n-2);endFform=2:100a=F(m)/F(m-1);ifabs(a-(1+sqrt(5)/2)=-1.1plot(x,y);title(y函数);xlabel(X);ylabel(Y);8.9.函数文件P.mfunctionPxy=P(x,y)Pxy=0.5457*exp(-0.75*y.2-3.75*x.2-1.5*x).*(x+y1).+0.7575*exp(-y.2-6*x.2).*(x+y-1).+0.5457*exp(-0.75*y.2-3.75*x.2+1.5*x).*(x+y=-1);end命令文件x,y=meshgrid(-3:0.1:3);s=size(x);Pxy=zeros(s(1),s(2);fori=1:s(1)forj=1:s(2)Pxy(i,j)=P(x(i,j),y(i,j);endendmesh(x,y,Pxy);10.A=123;456;780;C=2-5-22;-5-24-56;-22-56-16;X=lyap(A,C);X