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!