https://github.com/acxz/mppi/blob/master/mppi.m#L128 Seems to be missing a u - v term see Info-Theoretic Model Predictive Control Theory and Appl to Auto Driv https://arxiv.org/pdf/1707.02342.pdf Edit: but in linked paper it is just v, hmmm