更新时间:2023-02-26 14:40:50
A的列与线性相关,前提是 null(A)不为零. 在Matlab中运行 B = null(A)将为您返回空空间的基础.对于B中的每一列,取该列中非零元素的索引.这些将是您要查找的列号. 例如,尝试:
Columns of A are linearly dependent iff null(A) is not zero. Running B=null(A) in Matlab will return you a basis of the null space. For every column in B, take the indices of the non-zero elements in that column. These will be the columns numbers you are looking for. For example, try:
a = rand(18,16);
a(:,17) = a(:,2) + a(:,4);
null(a)