palaniraj p
ARJ college of engg&Tech
Followers: 0 Following: 0
Feeds
已回答
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 ...
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 ...
7 years 前 | 0