Check at least one element is not zero in each row

1 回表示 (過去 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 Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by