Effacer les filtres
Effacer les filtres

Root Locus from equation?

3 vues (au cours des 30 derniers jours)
Ali Almakhmari
Ali Almakhmari le 4 Nov 2023
I have this equation:
syms s u
eqn = 1472.*s.^4 - 99.2.*s.^3 -256.*s.^2.*u.^2 + 1393.*s.^2 + 2.4.*s.*u.^2 - 25.*s -24.*u.^2 + 150 == 0;
where u is speed, and s are the eigenvalues of the systems. I want to plot the root locus (real vs imaginary part of the eigenvalues) as a function of the speed but I am not sure where to start because the root locus command in MATLAB doesnt take something like this.

Réponse acceptée

Star Strider
Star Strider le 4 Nov 2023
It might if you aske it to and give it a causal system it can work with —
s = tf('s');
eqn = @(u) 1 / (1472*s^4 - 99.2*s^3 -256*s^2*u.^2 + 1393*s^2 + 2.4*s*u^2 - 25*s -24*u^2 + 150)
eqn = function_handle with value:
@(u)1/(1472*s^4-99.2*s^3-256*s^2*u.^2+1393*s^2+2.4*s*u^2-25*s-24*u^2+150)
u = 1;
figure
rlocus(eqn(u))
grid
u = 10;
figure
rlocus(eqn(u))
grid
The original ‘eqn’ would only work for fimplicit, for example —
eqn = @(s,u) 1472.*s.^4 - 99.2.*s.^3 -256.*s.^2.*u.^2 + 1393.*s.^2 + 2.4.*s.*u.^2 - 25.*s -24.*u.^2 + 150;
figure
fimplicit(eqn, [[-1 1]*10 [-1 1]*10])
grid
I would not consider that to be a root locus plot, however that is likely the only way to work with it as originally stated.
.

Plus de réponses (0)

Tags

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by