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)



No products are associated with this question.

1 Answer

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


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!