Strings‎ > ‎

Frequencies



% get frequency table

s = {'A','E','C','B','E','B','E','A'}
tabulate(sort(s))
  Value    Count   Percent
      A        2     25.00%
      B        2     25.00%
      C        1     12.50%
      E        3     37.50%




https://mathworks.com/help/stats/tabulate.html