i have a 10x10 matrix with integer elements ranging between 0 to 4.
i want to make a vector of dimension 5 which contain the elements 0 to 4 together
with the information of the rows and columns.
for example: say matrix A(0,0)=0,A(3,4)=0, A(2,1)=1,A(5,6)=1
now i want to make a vector M[0] which will contain the element of zero value together with their row and column numbers.