Problem 85. Remove the polynomials that have positive real elements of their roots.

The characteristic equation for a dynamic system is a polynomial whose roots indicate its behavior. If any of the roots of the polynomial have a positive real part, the behavior of the system will be divergent. Given a cell array of vectors that represent polynomials, remove the ones that have roots with positive real components.


 polyIn = {[1 1],[1 -1]}
 polyOut = {[1 1]}

since roots([1 -1]) is 1, a positive number.

Solution Stats

52.89% Correct | 47.11% Incorrect
Last solution submitted on Oct 12, 2019

Problem Comments

Solution Comments