title: Implementation of Iterative Learning Control in Matlab/Simulink
body: <p>I am working on the development of an Iterative Learning Controller for a simple transfer function.</p>
  
  <p><img src="https://i.stack.imgur.com/ViSa8.jpg" alt="iteration"></p>
  
  <p>The iterations are controlled by the external matlab loop.
  But the error <code>e(k)</code> (k is trial number) is not updating ... as the trials increases.
  Please detect the error I've commited.</p>
  
  <p>Thanks and Regards.</p>