Suppose(adsbygoogle = window.adsbygoogle || []).push({});

x =

1 2 3 4

1 2 3 4

5 6 7 8

1 2 3 4

5 6 7 8

I need a function to count how many times each set of number occurs

eg.

1 2 3 4 occurs 3 times

5 6 7 8 occurs 2 times

Thanks!

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab - count how many times a number occurs

**Physics Forums | Science Articles, Homework Help, Discussion**