How to find only negative root of any polynomial

3 次查看(过去 30 天)
I am looking for a filter design. and from all possible roots of transfer function, i have to filter only left half s-plane (negative) roots. please suggest any code as "roots()" gives all +ve and _ve roots

回答(2 个)

Azzi Abdelmalek
Azzi Abdelmalek 2014-11-7
r=roots(your_array)
r=r(r<0))

Mikhail
Mikhail 2014-11-7
If you have symbolic math toolbox, function vpasolve will find all roots. After that you can filter it with something like:
a=vpasolve(eqn);
b=a(find(real(a)<0));

类别

Help CenterFile Exchange 中查找有关 Polynomials 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by