how can i solve this polynomial equation?

clear all clc; syms x A=[x 2 1;1 0 -x;5 1 x]; det(A) r=solve('det(A)==0','x')

 Accepted Answer

syms x
A=[x 2 1;1 0 -x;5 1 x]
r=double(solve(det(A),x))

More Answers (0)

Asked:

MA
on 4 Jun 2014

Commented:

MA
on 4 Jun 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!