MATLAB Answers


How can I solve this question

Asked by 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)


Log in to comment.

1 Answer

Answer by Andrei Bobrov
on 27 Apr 2013

syms x
out = prod(x - solve(x^3-3*x^2+x+5))


Log in to comment.

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today