Check at least one element is not zero in each row

조회 수: 4 (최근 30일)
REN
REN 2011년 3월 6일
Hello,
The aim is to check in a large matrix A, there is at least one element is not zero in each row. I understand the normal method is
for i = 1: numberOfRow
% check at least one element is not zero
end
But this is going really slow.
Is there a smart way to verify it?
Thanks in advance.

채택된 답변

Walter Roberson
Walter Roberson 2011년 3월 6일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by