Community Profile

photo

Muhammad Ilias Amin


Active since 2014

Statistics

  • First Answer

View badges

Content Feed

View by

Answered
Count the number of non-zero elements of a column/row of a 2D-Matrix?
a = [3 0 0; 0 2 0; 1 0 0]; To get the no of non zero columns: sum( all( a == 0, 1 ) ); To get the no of non zero rows: sum...

mer än 7 år ago | 2