If I have U3 matrix as:
U3(:,:,1) = [0 , 0 , 0 , 0 , 0;0 , 0 , 0 , 0 , 0;0 , 1 , 0 , 0 , 1;0 , 0 , 0 , 0 , 0;0 , 0 , 0 , 0 , 0]U3(:,:,2) = [0 , 0 , 0 , 0 , 0;0 , 0 , 0 , 0 , 0;0 , 1 , 0 , 0 , 1;0 , 1 , 0 , 0 , 0;0 , 1 , 0 , 0 , 0]U3(:,:,3) = [0 , 0 , 0 , 0 , 0;0 , 0 , 0 , 0 , 0;0 , 1 , 0 , 0 , 1;0 , 0 , 0 , 0 , 0;0 , 0 , 0 , 0 , 0]
I assumed that these coordinates can be represented as an individual chain U3(3,2,1) and U3(3,2,2)and U3(4,2,2) and U3(5,2,2)and U3(3,2,3). and the other coordinates as another individual chain U3(3,4,1) and U3(3,4,2) and U3(3,4,3).
How can I give each chain a similar individual number? EX.
U3(3,2,1) and U3(3,2,2)and U3(4,2,2) and U3(5,2,2)and U3(3,2,3)=2
U3(3,4,1) and U3(3,4,2) and U3(3,4,3)=3
Best Answer