Equations and systems solver - MATLAB solve
www.mathworks.com › help › symbolicSolve Polynomial and Return Real Solutions Solve a fifth-degree polynomial. It has five solutions. syms x eqn = x^5 == 3125; S = solve (eqn,x) S = Return only real solutions by setting 'Real' option to true. The only real solutions of this equation is 5. S = solve (eqn,x, 'Real' ,true) S = Numerically Solve Equations
Symbolic substitution - MATLAB subs
www.mathworks.com › help › symbolicSubstitute X in the polynomial p (X) with A using the subs function. According to the Cayley-Hamilton theorem, this results in a 3-by-3 zero matrix, since the coefficients c are the characteristic polynomial of A. Use symmatrix2sym to convert the substituted expression to a matrix of symbolic numbers.