Why am I getting an error when using the RLOCUS function to find the root locus of my system when using the Control System Toolbox 5.1 (R12.1)?

52 vues (au cours des 30 derniers jours)
Why am I getting an error when using the RLOCUS function to find the root locus of my system when using the Control System Toolbox 5.1 (R12.1)?
Here is my system:
nume=[1 0 1];
dene=conv([1 0],[1 0 4]);
rlocus(nume,dene);
I get the following error upon running the above code
??? Error using ==> eig
NaN or Inf prevents convergence.
RLOCUS works fine with other systems.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 27 Juin 2009
This is a bug in RLOCUS in the Control System Toolbox 5.1 (R12.1) that has been fixed in the Control System Toolbox 5.2 (R13).
As a workaround for R12.1, please explicitly specify the Gain value in the RLOCUS command.
nume=[1 0 1];
dene=conv([1 0],[1 0 4]);
sys = tf(nume,dene);
GainK=0;
rlocus(sys,GainK);

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by