Single-trial dynamics of motor cortex and their applications to brain-machine interfaces | Synapse