M.Shobana
Member level 1
hello ,
I am facing problem when i am trying to find the number of occurence of 1 in binary matrix for particular row alone.Actually i used sum() function for counting the '1'.
this is my code
'' clear all
R= r(1, //for example i took 1st row in the 'r' matrix
G = sum(R);''
here its returns 'double' value instead of integer.if anybody knows please help me
I am facing problem when i am trying to find the number of occurence of 1 in binary matrix for particular row alone.Actually i used sum() function for counting the '1'.
this is my code
'' clear all
R= r(1, //for example i took 1st row in the 'r' matrix
G = sum(R);''
here its returns 'double' value instead of integer.if anybody knows please help me