how to write PID function in .m file
显示 更早的评论
i need a pid function in my m file. could anyone please write the function.
2 个评论
Hero
2016-3-18
I do have same question
PUJARI MURAGA
2016-12-1
You are having state space model. Suppose I have differential equations then is it possible to do without converting them in state space/laplace ?
采纳的回答
更多回答(2 个)
Krishnendu Mukherjee
2012-5-14
0 个投票
a way is there : suppose ur tf is (1/a+s) which is to be fed to a pid controler. then the overall tf will be: (Kp+Ki/S+Kd.S).(i/S+a)/(1+(Kp+Ki/S+Kd.S).(i/S+a)). now if you want to give step input then : num=[............] den=[............] tf=num/den ster(tf) so you have to transfer the PID and the tf to a overall transfer function.
Daniel
2014-10-24
0 个投票
Please where's the demo? I'm also trying to write a matlab function for pid using the user-defined function block
3 个评论
Arkadiy Turevskiy
2014-10-27
html link added back
Suyog
2023-5-11
How to write pid function in m file
类别
在 帮助中心 和 File Exchange 中查找有关 PID Controller Tuning 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!