The files used for plotting and analysis are in code>plotting ISI plot takes an .MAT file output from plexon consisting of time stamps and unit numbers and returns the ISI plots for the unit Spikes_PC takes a .MAT file from plexon consisting of timestamps, unit numbers, PC1, PC2, and the waveforms. It plots the PC sorting for the unit as well as the average and raw waveforms. Percent_recovery takes the timestamps of the interpolated unit, after creating and removing the artifact, and the timestamps of the original unit as input and then calculates the percent recover by looping over both arrays to find matching elements, then total matching elements are divided by the number of elements in the original time stamps to get the percentage recovered.