how can i solve this polynomial equation?

1 view (last 30 days)
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

Azzi Abdelmalek
Azzi Abdelmalek on 4 Jun 2014
Edited: Azzi Abdelmalek on 4 Jun 2014
syms x
A=[x 2 1;1 0 -x;5 1 x]
r=double(solve(det(A),x))

More Answers (0)

Community Treasure Hunt

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

Start Hunting!