作业帮 > 综合 > 作业

怎么对一个矩阵进行对称正交化?matlab

来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/06/23 00:02:16
怎么对一个矩阵进行对称正交化?matlab
怎么对一个矩阵进行对称正交化?matlab
ORTH Orthogonalization.
Q = ORTH(A) is an orthonormal basis for the range of A.
That is,Q'*Q = I,the columns of Q span the same space as
the columns of A,and the number of columns of Q is the
rank of A.
Class support for input A:
float:double,single
>> a1=[1;0;-1;0]
a1 =
1
0
-1
0
>> a2=[1;-1;0;1];
>> a3=[-1;1;1;0];
>> Q=orth([a1 a2 a3])
Q =
-0.6928 0.0587 -0.4280
0.5046 0.4078 -0.7609
0.4589 -0.6730 -0.0563
-0.2339 -0.6143 -0.4843
>> Q'*Q
ans =
1.0000 0 -0.0000
0 1.0000 0.0000
-0.0000 0.0000 1.0000
Q就是正交化后的矩阵,orth()是正交化函数