MATLAB: How can alter this code to select some matrix

functionmatrixrandom

if i have this code
for iii=1:4
X = randi([0 1],3,3);
end
how can i select the X number 2 and number 4 like this
X = [ 1 1 0
0 1 0
0 0 1 ]
X = [ 0 1 0
1 1 1
1 0 0]
X = [1 1 1
0 1 0
1 1 0]
X = [1 0 1
1 1 0
1 0 0 ]
i want the result be
X = [ 0 1 0
1 1 1
1 0 0]
X = [1 0 1
1 1 0
1 0 0 ]

Best Answer

X={[ 1 1 0;0 1 0;0 0 1 ], [ 0 1 0;1 1 1;1 0 0]...
[1 1 1;0 1 0;1 1 0],[1 0 1;1 1 0;1 0 0]}
X{2}
X{4}