How can I get "simple PID closed-loop controller" code for Matlab function for applying in simulink ?
13 次查看(过去 30 天)
显示 更早的评论
I want to build a modified PID closed loop controller, so I need a simple PID closed-loop code with only one feedback and one reference to applying in matlab function in simulink, I will aprriate your helps, Thanks ...
0 个评论
回答(1 个)
Sam Chak
2023-9-9
@Rawaz Aziz, From the description of the problem, it seemed that you want a modified closed-loop controller like this:
% pid controller
Gc = pid(1, 1, 1, 1)
% modified pid closed-loop controller with 1 feedback
Gcl = feedback(Gc, 1)
% response
step(Gcl, 20), grid on
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 PID Controller Tuning 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
