Abstract: This paper introduces a generic dynamic programming function for Matlab. This function solves discrete-time optimal-control problems using Bellman's dynamic programming algorithm. The ...