MATLAB: Union of cell matrix

cellmatrixunionunique

I have a cell matrix
A={[1 2 3] [2 8] [9 2 5]};
I want unique value or union of A.
The solution should be like this = [1 2 3 5 8 9]
Please give me the

Best Answer

unique(cell2mat(A))