Created
May 5, 2015 19:04
-
-
Save mutaku/f4e32f53ed0c2ec37e6e to your computer and use it in GitHub Desktop.
Filter a cell matrix by size of each element - subthresholding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Filter dataMatrix to eliminate elements which contain fewer than 50 subelements | |
% i.e. subthresholding dataMatrix | |
dataMatrix(find(cellfun('size', dataMatrix, 1) < 50)) = cell(1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment