matlab rank

k =rank(A)    %a is matrix

s = svd(A);
tol = max(size(A))*eps(max(s));
r = sum(s > tol);

posted @ 2015-04-10 03:04  vigorpush  阅读(262)  评论(0编辑  收藏  举报