clear; clc;

A = randi(3, 1, 10)
[elements, counts] = freq(A)