On an Iterative Learning Control Law for Dynamical Systems