If you have a MATLAB array such as the below:
A = [1,1,1,1,2,2,2,2,3,3,3,4,4,5]
I want to be able to filter this array so that elements which have a low frequency are removed.
In other words, is there an easy way to remove elements in the array which have a certain low frequency for example <= than 2?
In this case:
The result would be:
[1,1,1,1,2,2,2,2,3,3,3]
Cheers
I’d probably do it somehow like this (hope the syntax is good :))