The code for the paper:

Feeney DF, Meyer FG, Noone N, Enoka RM (2017) A latent low-dimensional common input drives a pool of motor neurons: a probabilistic latent state-space model. J Neurophysiol 118:2238-2250

is available here and an earlier version is also available at the authors repository:

https://github.com/dfeeney31/Neural-models

Once the following packages are installed (adding logb.m and plotSpikeRaster.m to the Neural-models-master folder) from matlabcentral:

https://www.mathworks.com/matlabcentral/fileexchange/45671-flexible-and-fast-spike-raster-plotting

https://www.mathworks.com/matlabcentral/fileexchange/14866-logb

typing CompExpNeuro at the matlab command prompt will generate these images:

screenshot 1

Note that cmtm from

https://www.mathworks.com/matlabcentral/fileexchange/22551-multi-taper-coherence-method-with-bias-correction

is required for New_coher.m which generates the following graphs:

screenshot 2 the last of which is similar to Figure 7D in the paper.