I want to assign each element of an n by m matrix with a specefic code that depends on the code of other elements in the matrix
For example in the below picture I want to give the element mm(6,2) a code '0' and element mm(6,1) code'1'
the problem comes here,I want the code of the element mm(5,1) per say to be the code of mm(6,2) with an extra '1' next to its right so it becomes '01'
this is the code I have and I keep running into size problems:
I want to fill the code that I assigned in emptyCell ,for example I want the blue marked cell to contain '1011',How can I approach this problem?
any help would be appreciated