@asolsonaberga on line ~173 in mkLTSAsessions, this code that catches the case where K has multiple items doesn't seem to work right:
if length(K) > 1
K = find(sTime(k) <= sb(k) & eTime(k) >= eb(k));
end
sTime and eTime are generally shorter than k (lowercase) so I'm getting a crash. Should it be stime(K) and eTime(K) instead? But then I think that doesn't change what K ends up being...
Do you remember what the intended output was?
@asolsonaberga on line ~173 in mkLTSAsessions, this code that catches the case where K has multiple items doesn't seem to work right:
if length(K) > 1
K = find(sTime(k) <= sb(k) & eTime(k) >= eb(k));
end
sTime and eTime are generally shorter than k (lowercase) so I'm getting a crash. Should it be stime(K) and eTime(K) instead? But then I think that doesn't change what K ends up being...
Do you remember what the intended output was?