Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Adriaens, Ines
GenTORE_WP3
Commits
646f5530
Commit
646f5530
authored
Jun 01, 2021
by
Adriaens, Ines
✌🏼
Browse files
Upload New File
parent
c4ae6ab2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Pattern.m
0 → 100644
View file @
646f5530
function [output1,output2] = F3_pattern(B,A)
SIZE = length(B)-length(A)+1;
match = zeros(1,SIZE);
for i = 1:SIZE
match(i) = max(all(B(i:i-1+length(A))==A));
end
output1 = find(match == 1);
idx = find(diff(output1)==1);
output2 = output1;
output2(:,idx+1) = [];
end
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment