% Suppose I have a cellarray
C = {[1; 2; 3]; [1; 2; 3; 4]; [4; 1; 2; 3]; [1; 2]};c{:}ans = 123ans =1234ans=4123ans=12% where any digit won't repeat in the individual cell.
% I need to find out: how many times a particular sequence is present inside the cell array.
Expected output:sequence_check = {[1; 2; 3]}Number_Of_Times_that_sequence_is_Present_Inside_the_Cell_Array = 3Show_the_index_of_those_cells = 1 2 3
MATLAB: How to find the number of occurrences of a particular sequence inside the cell array
cellarraysequence finder
Related Question
- How to count the number of occurrences of each pair in a cell
- How to count the top five pairs (for each digit) which have the highest number of occurrences in a cell array
- How to automate the count of consecutive values in a cell array
- How to find unique group of numbers
- Find multiple elements in cell
- Matrix Manipulation
- Finding unique cell elements
Best Answer