PID Command in MATLAB
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Muhammad Adeel Ahsan Awan
le 3 Juin 2020
Réponse apportée : Muhammad Adeel Ahsan Awan
le 5 Juin 2020
I am having problem in solving Simulink Model in MATLAB.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/309617/image.jpeg)
I tried to solved this using following code
s=tf('s')
Phi=193.4/(s^2)
K_Phi=pid(0.3,0,0.2,100)
Phi_1=feedback(K_Phi*Phi,1,-1)
step(Phi_1)
I also tried on more method
K_Phi=pid(0.3,0,0.2,100)
Phi_1=feedback(Phi,1,-1)
Phi_2=Phi_1*K_Phi
step(Phi_2)
But, both ways aren't working kindly help me in solving this.
0 commentaires
Réponse acceptée
Plus de réponses (1)
madhan ravi
le 3 Juin 2020
I think you should use lsim(...) because there’s a step input to the model.
Voir également
Catégories
En savoir plus sur PID Controller Tuning dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!