photo

palaniraj p


ARJ college of engg&Tech

Last seen: 3 years ago Active since 2017

Followers: 0   Following: 0

Message

Statistics

  • First Answer

View badges

Feeds

View by

Answered
How do I count the number of zeros in a matrix?
x=[ 1 4 0; 0 3 3; 5 0 0] nr=size(x,1); nc=size(x,1); xz=0; for ir=1:nr for ic=1:nc if x(ir,ic)==0 ...

6 years ago | 0