>>
>> A1=[0,0,1,1;1,0,0,0;0,1,0,0;1,0,1,0]
A1 =
0 0 1 1
1 0 0 0
0 1 0 0
1 0 1 0
>>
>> A2=A1*A1
A2 =
1 1 1 0
0 0 1 1
1 0 0 0
0 1 1 1
>>