Hi, I have a matrix with i,...,n products (column 1) en j,...,n characteristics (row 1). Cell Cij = 1 if product i possesses characteristic j and 0 otherwise. From this matrix I want to generate a new matrix with all products and the difference in characteristics. So, if product i has two characteristics that product k does not have, cell Cik in the new matrix is 2. The matrix is not symmetric because if product k has one characteristic that product i does not have, cell Cki in the new matrix is 1. How do I go from my first matrix to the second? Thanks!