findPattern - found = [found i]; end end

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function finddna = findPattern(dna, pat) found = []; for i = 1:length(dna)-3 if pat(i) == 'A' && pat(i+1) == 'c' && pat(i+2) == 'G' && pat(i+3) == 'T'
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: found = [found i]; end end...
View Full Document

This note was uploaded on 03/15/2011 for the course COM S 100 at Cornell University (Engineering School).

Ask a homework question - tutors are online