代码搜索结果

找到约 10,000 项符合 E 的代码

e0437.m

a=[-2 1 1;0 2 0;-4 1 3];[X,D]=eig(a)

e0464.m

format long; fx=inline('exp(-x)'); [I,n]=quad(fx,1,2.5,1e-10) format long; fx=inline('exp(-x)'); [I,n]=quad8(fx,1,2.5,1e-10)

e0438.m

[L,U]=lu(magic(3)) %为验证结果的正确性,用语句: L*U [L,U,p]=lu(magic(3))

e0432.m

A=[1 2 2 1;2 1 -2 -2;1 -1 -4 -3]; format rat %指定有理式格式输出 B=null(A,'r') %求解空间的有理基

e0465.m

X=1:0.01:2.5; Y=exp(-X); trapz(X,Y)

e0334.m

%建立存放5阶魔方阵的数据文件magic5.dat fid=fopen('magic5.dat','w'); x=magic(5); cnt=fwrite(fid,x,'int32'); fclose(fid); %为magic5.dat追加数据 fid=fopen('magic5.dat','a'); a=magic(5);b=a>5;a(b)=sqrt(a(b));a(~b)=

e0302.m

a='fate';b='cake';result=a==b

e0328.m

%循环程序 maxcount=1; tic;%启动定时器 for jj=1:maxcount a=1:10000; for ii=1:10000 if a(ii)>5000 a(ii)=sqrt(a(ii)); end end end average1=(toc)/maxcount; %toc为读

e0319.asv

a=0;b=2*pi;n=1000;h=(b-a)/n; x=a:h:b; f=cos(x-pi/6).*sin(x+pi/6); for i=1:n s(i)=(f(i)+f(i+1)).*h/2; end s=sum(s)

e0310.m

a=eye(4);islogical(a),b=logical(a);islogical(b) b=speye(4);issparse(b) a=ones(4);isreal(a) [isfloat(single(pi)) isfloat(double(pi)) isfloat(int8(3))] s='string';ischar(s)