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 - The Fusion of Science and Community**

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

Loading...

Similar Threads - Matlab count many | Date |
---|---|

Counting Occurrences in a 2D Array with MATLAB | Jul 2, 2011 |

Count size of matrix without size function in matlab | Feb 15, 2011 |

Counting the number of rows/cols in a matrix with Matlab | Feb 26, 2010 |

Count rows in Matlab | Jun 13, 2008 |

**Physics Forums - The Fusion of Science and Community**