Matlab code for accompanying paper: "Mapping cortical mesoscopic networks of single spiking cortical or sub-cortical neurons", Xiao D, Vanni MP, Mitelut C, Chan AW, LeDue JM, Xie Y, Chen AC, Swindale, NV, and Murphy TH. (eLife). The script computes spike-triggered-average maps and spike-triggered-map temporal dynamics (STMTDs). Example data for generating spike triggered average maps: https://www.dropbox.com/sh/e14ty7khyzg3x2h/AABRLx3N0iEi6AjsrqOP0vdTa?dl=0