MATLAB code for analyzing calcium signal imaging.