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.
Example:
polyIn = {[1 1],[1 -1]}
polyOut = {[1 1]}
since roots([1 -1]) is 1, a positive number.
Solution Stats
Problem Comments
5 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers1740
Suggested Problems
-
2243 Solvers
-
Replace NaNs with the number that appears to its left in the row.
3064 Solvers
-
Back to basics 3 - Temp Directory
384 Solvers
-
Return unique values without sorting
999 Solvers
-
convert matrix to single column
435 Solvers
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
The test set should contain a polynomial with complex roots where the real part is positive, and a polynomial with a positive and a negative root.
Too less test cases
How does [1 1] represent a polynomial? This problem should read "Remove sets with negative numbers" instead.
@Brandon polynomials in MATLAB are represented by a vector of coefficients; see doc roots.
interesting problem