1. 矩阵分析
1) 使用norm函数进行范数分析
n=norm(A) 计算向量或者矩阵的2阶范数
n=norm(A,p) 计算向量或矩阵的p阶范数 ,如果需要求解的是无穷阶范数,则p为inf或者-inf)
2)使用normest函数进行范数分析
当需要分析的矩阵比较大时,求解矩阵范数的时间就回比较长,因此当允许某个金丝的范数满足某种条件时,可以使用normest函数来求解范数。
nrm=normest(S) 估计矩阵S的2阶范数数值,默认的允许误差数值为1e-6
nrm=normest(S,tol) 使用tol参数作为允许的相对误差
>> W=wilkinson(500);
>> t1=clock;
>> w_norm=norm(W);
>> t2=clock;
>> t_norm=etime(t2,t1);
>> t3=clock;
>> w_normest=normest(W);
Warning: NORMEST did not converge for 100 iterations with tolerance 1e-006
> In normest at 41
>> t4=clock;
>> t_normest=etime(t4,t3);
>> t_normest
t_normest =
18.9330
1) 使用norm函数进行范数分析
n=norm(A) 计算向量或者矩阵的2阶范数
n=norm(A,p) 计算向量或矩阵的p阶范数 ,如果需要求解的是无穷阶范数,则p为inf或者-inf)
2)使用normest函数进行范数分析
当需要分析的矩阵比较大时,求解矩阵范数的时间就回比较长,因此当允许某个金丝的范数满足某种条件时,可以使用normest函数来求解范数。
nrm=normest(S) 估计矩阵S的2阶范数数值,默认的允许误差数值为1e-6
nrm=normest(S,tol) 使用tol参数作为允许的相对误差
>> W=wilkinson(500);
>> t1=clock;
>> w_norm=norm(W);
>> t2=clock;
>> t_norm=etime(t2,t1);
>> t3=clock;
>> w_normest=normest(W);
Warning: NORMEST did not converge for 100 iterations with tolerance 1e-006
> In normest at 41
>> t4=clock;
>> t_normest=etime(t4,t3);
>> t_normest
t_normest =
18.9330