x=1:9 y=x(2:2:8) z=[x(1) x(6) x(8)]
http://www.codebf.com/read/4/102
[x,y,z]=dsolve('Dx=2*x-3*y+3*z','Dy=4*x-5*y+3*z','Dz=4*x-4*y+2*z','t'); x=simple(x) y=simple(y) z=simple(z)
http://www.codebf.com/read/4/139
x=-6:0.01:6; y=normpdf(x); z=normpdf(x,0,2); plot(x,y,x,z)
http://www.codebf.com/read/4/158
x=0:0.1:1; y=[-0.447 1.978 3.28 6.16 7.08 7.34 7.66 9.56 9.48 9.30 11.2]; A=polyfit(x,y,2) z=polyval(A,x); plot(x,y,'k+',x,z,'r')
http://www.codebf.com/read/4/178
x=0:0.1:1; y=[-0.447 1.978 3.28 6.16 7.08 7.34 7.66 9.56 9.48 9.30 11.2]; R=[(x.^2)' x' ones(11,1)]; A=R\y'
http://www.codebf.com/read/4/184
x=[1 2 4 7 9 12 13 15 17]; f=[1.5 3.9 6 11.7 12.6 18.8 20.3 20.6 21.1]; axis([0 18 1 22]) xlabel('x') ylabel('f') y=1:0.1:17; figure(1) plot(x,f,'o') gtext('已知数据点') hold on;pause bb1=inte
http://www.codebf.com/read/4/190
[x,fval]=fminbnd('fun0',0,1.5); xmax=x fmax=-fval
http://www.codebf.com/read/4/200
[x,y]=meshgrid(-2:0.1:2,-1:0.1:3); z=100*(y-x.^2).^2+(1-x).^2; mesh(x,y,z)
http://www.codebf.com/read/4/202
[x,y]=meshgrid(-2:0.1:2,-1:0.1:3); z=100*(y-x.^2).^2+(1-x).^2; contour(x,y,z,20) hold on plot(-1.2,2,' o '); text(-1.2,2,'start point') plot(1,1,'o') text
http://www.codebf.com/read/4/204
http://www.codebf.com/read/716/4038
虫虫下载站 半导体技术网 电子研发网 源码地带 电源技术网 单片机技术网 医疗电子技术 嵌入式系统与单片机