nkinsky / ImageCamp

In vivo GCamp behavioral and data processing functions/scripts in MATLAB
1 stars 4 forks source link

Alternation branch #1

Closed wmau closed 9 years ago

wmau commented 9 years ago

Added trajectory correction by rotating if the maze or camera was rotated.

Postrials.m no longer requires specification of number of trials. It will automatically continue sorting trials until it runs into an error whereupon it will spit out the struct with sorted trials.

Sections are now always plotted (removed plot_flag option) to display whether or not the rotation of the animal's trajectory was good.

Sections.m was made more intuitive and plot was improved. Now you can see the outlines of the maze sections.

Slightly widened the left/right arms. Also adjusted the approach arm regions so that they extend onto the upper region of what was previously considered part of the left/right arms. This is so that widening the left/right arms doesn't affect the length of the approach.

nkinsky commented 9 years ago

Seems like it worked