MATLAB: How to choose randomly value from cell

cellcell arrays

>> SI
SI =
1×2 cell array
[1×2 double] [1×2 double]
>> for i=1:numel(SI)
disp(SI{i});
end
1 2
2 3
I want to choose value randomly from SI
for example the value is just one value among 1 2 like 1 or 2

Best Answer

Why not just,
a=cell2mat(SI);
b=a(randi(length(a)));%b is a random value inside all of SI