title: MATLAB: Limit from n to infinity for power of a matrix
body: <p>I am trying to compute lim(n->inf) for D^n, where D is a diagonal matrix:</p>
  
  <pre><code>D = [1.0000 0 0 0; 0 0.6730 0 0; 0 0 0.7600 0; 0 0 0 0.7370]
  n = 1
  L = limit(D^n,n,inf)
  </code></pre>
  
  <p>This returns the error:
  Undefined function 'limit' for input arguments of type 'double'.</p>
  
  <p>I am sure this should result in most entries except the upper-left entry going to zero, but I need to be able to present this with MATLAB results. Is there something else I need to include in my limit function?</p>