How do I fix this error?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Isyraf Izuddin
il 12 Gen 2021
Commentato: Isyraf Izuddin
il 12 Gen 2021
clear all
clc
syms s
K=1;
Gnum=(50/3)*K;
Gden=sym2poly((s+5)*(s+(10/3))*(s+2));
G=tf(Gnum,Gden);
H=20/(s+20);
figure
rlocus(G*H*K);
T=feedback(G*K,H);
figure
step(T)
figure
rlocus(T)
Error using * (line 80)
Invalid operand. Variables of type "sym" cannot be combined with other models.
Error in rootlocusKanalysis (line 16)
rlocus(G*H*K);
0 Commenti
Risposta accettata
Walter Roberson
il 12 Gen 2021
You can never create a tf directly from something symbolic.
s = tf('s');
K=1;
Gnum=(50/3)*K;
Gden=(s+5)*(s+(10/3))*(s+2);
G=tf(Gnum,Gden);
H=20/(s+20);
figure
rlocus(G*H*K);
T=feedback(G*K,H);
figure
step(T)
figure
rlocus(T)
3 Commenti
Walter Roberson
il 12 Gen 2021
In that video, at no point does the speaker use a symbolic H.
clear all
clc
syms s
K=1;
Gnum=(50/3)*K;
Gden=sym2poly((s+5)*(s+(10/3))*(s+2));
G=tf(Gnum,Gden);
Hnum = 20;
Hden = sym2poly(s+20);
H=tf(Hnum,Hden)
figure
rlocus(G*H*K);
T=feedback(G*K,H);
figure
step(T)
figure
rlocus(T)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Electrical Sensors in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!