How can I solve this question

1 view (last 30 days)
Mohammad Yasir Muneeb
Mohammad Yasir Muneeb on 27 Apr 2013
factorize the polynomial P(x), for example: x^3-3x^2+x+5=(x+1)(x-2-i)(x-2+i)

Answers (1)

Andrei Bobrov
Andrei Bobrov on 27 Apr 2013
syms x
out = prod(x - solve(x^3-3*x^2+x+5))

Categories

Find more on Polynomials in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!