This tutorial is out of date to the functions it uses. In particular, ReplayScore.m has changed since the tutorial has been written.
Output argument "qShuffled" (and possibly others) not assigned a value in the execution with "FindReplayScore" function.
Error in ReplayScore (line 52)
[r,p,st,sp,rShuffled,aShuffled,bShuffled,c,cShuffled,jump,jumpShuffled,maxJump,maxJumpShuffled,quadrantScore,qShuffled] = FindReplayScore(matrix,varargin{:});
Error using clabel
Contour matrix must have 2 rows.
This tutorial is out of date to the functions it uses. In particular, ReplayScore.m has changed since the tutorial has been written.
Also,
clabel('Probability (low -> high)')returnshttps://github.com/ayalab1/neurocode/blob/master/tutorials/pipelineThetaSequences.m