Skip to content

Instantly share code, notes, and snippets.

@mutaku
Created May 5, 2015 19:04
Show Gist options
  • Save mutaku/f4e32f53ed0c2ec37e6e to your computer and use it in GitHub Desktop.
Save mutaku/f4e32f53ed0c2ec37e6e to your computer and use it in GitHub Desktop.
Filter a cell matrix by size of each element - subthresholding
% 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