Quite new to Julia and am coming from a VBA background mostly Given that I am curious as to why in this code ‘h’ starts on the second letter of the string while ‘v’ starts with the first
s1 = “ACGTACT”
s2 = “ACTACGT”
for h in eachindex(s1), v in eachindex(s2)
if s1[h] == s2[v]
intCellFactor = 1
elseif s1[h] != s2[v]
intCellFactor = 0
end
end
5 posts - 3 participants