资源描述
单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,*,Matlab,矩阵运算,Z = zeros(2,4) All zeros,Z =,0 0 0 0,0 0 0 0,F = 5*ones(3,3) All ones,F =,5 5 5,5 5 5,5 5 5,1,矩阵的生成,u = 3; 1; 4,v = 2 0 -1,s = 7,u =,3,1,4,v =,2 0 -1,s =,7,2,A =,16 3 2 13,5 10 11 8,9 6 7 12,4 15 14 1,d = det(A) singular.,d = 0,e = eig(A),e =,34.0000,8.0000,0.0000,-8.0000,A + A,ans =,32 8 11 17,8 20 17 23,11 17 14 26,17 23 26 2,A*A,ans =,378 212 206 360,212 370 368 206,206 368 370 212,360 206 212 378,3,A+B,A-B,A*B A.*B,A/B A./B,AB A.B,AB A.B,A A.,4,x = (1:0.1:2);,logs = x log10(x),builds a table of logarithms. logs =,1.0 0,1.1 0.04139,1.2 0.07918,1.3 0.11394,1.4 0.14613,1.5 0.17609,1.6 0.20412,1.7 0.23045,1.8 0.25527,1.9 0.27875,2.0 0.30103,5,Heart rate Weight Hours of exercise per week For five observations, the resulting array might look like D =,72 134 3.2,81 201 3.5,69 156 7.1,82 148 2.4,75 170 1.2,mu = mean(D), sigma = std(D),mu =,75.8 161.8 3.48,sigma =,5.6303 25.499 2.2107,6,A = 1 2 3; 4 5 6; 7 8 9,A =,1 2 3,4 5 6,7 8 9,k = rank(A),b = trace(A),7,A = 1 2 3,1 2 3,1 2 3;,Z = null(A),Z =,0.9636 0,-0.1482 -0.8321,-0.2224 0.5547,8,Y = inv(X),Y = inv(X) returns the inverse of the square matrix X. A warning message is printed if X is badly scaled or nearly singular.,9,
展开阅读全文