代码搜索结果
找到约 10,000 项符合
E 的代码
e0251.m
s=struct('name','Wang Ming','number','19990101', 'class', '199901','sex','man')
e0241.m
str1='hello';str2='Hello';str3='help';
c1=strcmp(str1,str2)
c2=strcmpi(str1,str2)
c3=strncmp(str1,str3,2)
c4=strncmpi(str1,str3,2)
e0249.m
a{3,3}=[]%删除a的第三行、第三列元素
e0214.m
p1=pascal(4)
e0227.m
x = ones(1,8);n = length(x)% 建立任意的1×8的数组x
y=zeros(3,5);d=size(y)% 建立任意的3×5的数组y
[m n]=size(y),ndims(y),numel(y),mm=size(y,1),nn=size(y,2)
z= rand(2,10,3); % 建立任意的2×10×3的数组y
n = length(z)
e0220.m
a=[1 2 3 4;5 6 7 8;9 10 11 12];
a(1,:)
a(:,end)
a24=a(2,4)
a(1:2:4,:)
a(:,1:2:end)
a1=a([1,2],[2,3,4])
a2=a([1,2],[2,3,1])
a3=a([3,1],:)
a([1,3],[2,4])=zeros(2)
e0211.m
format rat %以有理形式输出
H=hilb(4)
invH=invhilb(4)
e0238.m
x=1:10;
log(x) %返回值为自然对数
log10(x) %返回值为常用对数
%如果求2为底的对数呢?
log10(x)/log10(2)
e0250.m
s.name='Wang Ming';
s.number='19990101';
s.sex='man';
s.class='199901'; %建立构架数组s
s%查看构架数组的内容
s.name%查看构架数组的某一个域内容
s(2).name='Zhang Le';
s(2).number='19990201';
s(2).sex='man'; %构架数组的第二个元素可以被通过
e0237.m
x=0.1:0.1:0.6;
asin(x),acos(x),atan(x)
%返回值为弧度
asind(x),acosd(x),atand(x)
%返回值为角度