4.已知:
求下列表达式的值:
(1) A+6*B和A-B+I(其中I为单位矩阵)
(2) A*B和A.*B
(3) A^3和A.^3
(4) A/B及B\A
(5) [A,B]和[A([1,3],:);B^2]
A=[12 34 -4;34 7 87;3 65 7];B=[1 3 -1;2 0 3;3 -2 7];
A+6.*B
A-B+eye(3)
A*B
A.*B
A^3
A.^3
A/B
B\A
[A,B]
[A([1,3],:);B^2]
1.求矩阵的特征值及特征向量,并分析其数学意义。
clc
A=[-29 6 18;20 5 12;-8 8 5];
[V,D]=eig(A)
2.试用matlab将关于x的函数f(x)=x^5+3*x^4+4*x^3+2*x^2+3*x+6的x替换成关于s的函数。
syms s x;
f=x^5+3*x^4+4*x^3+2*x^2+3*x+6;
F=subs(f,x,(s-1)/(s+1))
3.
z1=2*sin(85*pi/180)/(1+exp(2))
x=[2 1+2*i;-.45 5];
z2=1/2*log(x+sqrt(1+x^2))
a=-3.0:0.1:3.0;
z3=(exp(0.3.*a)-exp(-0.3.*a))./2.*sin(a+0.3)+log((0.3+a)./2)
t=0:0.5:2.5;
z4=(t>=0&t<1).*(t.^2)+(t>=1&t<2).*(t.^2-1)+(t>=2&t<3) .*(t.^2-2*t+1)