F =

I want to find the Spectra redius of the matrices below but I kept running into problem. syms a b c d e f g F = [0 0 0 a; 0 0 0 b; 0 0 0 c; e f g 0]
syms q r s t u V = [q 0 0 0; r s 0 0; 0 0 t 0; 0 0 0 u]
Vi = inv(V) % calculate inverse of V
K = F*Vi % compute the next generation matrix
eigenvalues= eig(K) % Find the eigenvalues of \(K\)
abs_eigenvalues = abs(eigenvalues) % Compute the absolute values of the eigenvalues.
spectral_radius = max(abs_eigenvalues) %Find the maximum absolute eigenvalue. Error It's show fatal error
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!