Skip to content

Commit

Permalink
added statement to address ts stored as column or row vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
lolaBerkowitz committed Nov 26, 2024
1 parent 6d1dec7 commit e44d13e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion preprocessing/behavior/manual_trackerjumps.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
% use the gui to cut out points
[~,~,in]=restrictMovement(xtemp,ytemp,restic_dir,darkmode,axis_equal,alpha,add_scatter);
% save the ts where the tracker error exists
savets = [savets; tstemp(in)'];
if size(tstemp,2)>1
savets=[savets tstemp(in)];
else
savets=[savets; tstemp(in)];
end
end
% locate the index for each tracker error
good_idx=ismember(ts,savets);
Expand Down

0 comments on commit e44d13e

Please sign in to comment.