Sunday, 18 August 2013

Counting no of repeating elements in an array in matlab

Counting no of repeating elements in an array in matlab

suppose i have an array (in matlab) like this :
A = [ 1 1 1 3 6 2 2 2 3 4 3 3];
i want another array suppose X to be an array containing those elements of
A that are more than 3 in count e.g. X should be [1 2 3]
is there a function that can do this for me? if so what is it?

No comments:

Post a Comment