how to write PID function in .m file
Ältere Kommentare anzeigen
i need a pid function in my m file. could anyone please write the function.
2 Kommentare
Hero
am 18 Mär. 2016
I do have same question
PUJARI MURAGA
am 1 Dez. 2016
You are having state space model. Suppose I have differential equations then is it possible to do without converting them in state space/laplace ?
Akzeptierte Antwort
Weitere Antworten (2)
Krishnendu Mukherjee
am 14 Mai 2012
0 Stimmen
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.
1 Kommentar
sujan
am 17 Mai 2012
Daniel
am 24 Okt. 2014
0 Stimmen
Please where's the demo? I'm also trying to write a matlab function for pid using the user-defined function block
3 Kommentare
Arkadiy Turevskiy
am 27 Okt. 2014
html link added back
Suyog
am 11 Mai 2023
How to write pid function in m file
Kategorien
Mehr zu PID Controller Tuning finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!