代码搜索结果

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

e0221.m

a=zeros(2,3); b=1:6; a(:)=b

e0223.m

a=[1 2 0;3 4 0;5 6 9]; a(:,3)=[] %删除第三列元素 a(2,:)=[] %删除第二行元素 a(1)=[] %删除一个元素,则矩阵变为行向量 a=[] %删除所有元素为空矩阵

e0222.m

a=zeros(2,3);a(5:6)=[2 3] %给第5、6元素赋值 a=zeros(3,4);a(1:2,1:3)=[1 1 1;1 1 1] %给第一、二行元素赋值为全1 a(1:2,1:3)=[1 1 1;1 1 1]

e0247.m

a={'This is the forth example.',magic(3);ones(3),{'North';'East'}} a(1,2)% 查看a(1,2)的结构 a{1,2}%查看a{1,2}元胞的内容 a{1,2}(1) %引用a{1,2}元胞的第1个元素 a{1,2}([1 2]) %引用a{1,2}元胞的第1、2个元素

e0204.m

a=[1,2,3;4,5,6;7,8,9]

e0208.m

t1=linspace(0,2*pi,5) %从0到2*pi等分成5个点 linspace(1,8,8) linspace(1,8,1) t2=logspace(0,2,3) %从1到100(即101到102)按对数等分成3个点

e0252.m

c={'Zhang Ming','19990102','femal','199901'}; f={'name','number','sex','class'}; s=cell2struct(c,f,2)

e0244.m

b(1,1)={'This is the second example.'}; b(1,2)={hilb(3)}; b(2,1)={zeros(2)}; b(2,2)={{'South';'West'}}; b% 查看b的内容

e0242.m

x=5317;y=int2str(x) p=num2str(pi,7) a=[1 2 3;4 5 6] ; b=mat2str(a) str=sprintf('The value of pi=%8.6f.',pi)