Routh Hurwitz Criterion (with symbolic and marginal cases supported)
This function takes in a polynomial coefficient array (like from charpoly()). The array can be symbolic, which is nice for tweaking system parameters. Additionally, marginal cases are supported. A symbolic 'epsilon' will be added in a divide-by-zero scenario. When an entire row is zero, the auxiliary polynomial is calculated, derivative found, then the new row is placed back into the array. The function returns the entire array - leaving analysis to you!
*NOTE this is not efficient or beautiful. Try-catch blocks are used gratuitously to avoid over indexing.
Also thanks to wikipedia: https://en.wikipedia.org/wiki/Routh%E2%80%93Hurwitz_stability_criterion
Cite As
kmilt (2024). Routh Hurwitz Criterion (with symbolic and marginal cases supported) (https://www.mathworks.com/matlabcentral/fileexchange/52227-routh-hurwitz-criterion-with-symbolic-and-marginal-cases-supported), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.