Feedback Function Not enough input arguments error
15 次查看(过去 30 天)
显示 更早的评论
So here is my code below when I run it it gives me a error which should not happen. Any suggestions as to what to do inorder to fix this small error? I own all of packages required. It should just work.
syms s
k=0.0223; theta=60; Tau=12.6;
kc=3.75; TauD=0; TauI=12.6;
G=(k*exp(-theta*s))/(Tau*s+1)
C=kc*(1+1/(TauI*s)+TauD*s)
sys = feedback(G*C,1);
step(sys)
0 个评论
采纳的回答
Star Strider
2021-11-29
Please do not mix Symbolic Math Toolbox and Control System Toolbox commands.
It only confuses both of them!
k=0.0223; theta=60; Tau=12.6;
kc=3.75; TauD=0; TauI=12.6;
s = tf('s'); % ,— ADD THIS ASSIGNMENT
G=(k*exp(-theta*s))/(Tau*s+1)
C=kc*(1+1/(TauI*s)+TauD*s)
sys = feedback(G*C,1);
step(sys)
.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Stability Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!