I am trying to compute lim(n->inf) for D^n, where D is a diagonal matrix:
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)
This returns the error: Undefined function 'limit' for input arguments of type 'double'.
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?
limitis a symbolic function. Are you sure you do not meansyms n; L = limit(D^n,1,inf)- Ander Bigurilimitfunction... - Wolfienth power would simply take the powers of each diagonal individually to the powernwith the rest of the matrix set to 0. Therefore, raising those to the infinite power would give you a zero matrix asr^n = 0if|r| < 1andn -> infinity. - rayryeng