let $$A = \begin{pmatrix} 1 & 2 & 3 \\ 2 & 5 & 6 \\ 4 & 8 & 9 \\ \end{pmatrix}$$
I want to plot this function $\lambda\to||(\lambda I_3-A)^{-1}||$
and then point out the eigen values on the graph
My try : since $\sum\lambda = Tr(A) = 15$ and $\prod\lambda = det(A) = -3 $
I chose this interval $x= -20:0.1:20$ all the eigenvalues sould be within that interval
then tried this : plot(x,norm((x.*B-A)^(-1))) where B =eye(3). but an error popped.
Please I need some help.
Thank you.