how to develop simulink model using this code
이전 댓글 표시
i new in matlab.. my task to design a water level using PID controller and simulate using simulink.. this is my first try.. but i dont know how to use my coding with simulink..
clear all clc
syms s
%G=0.036/(36.942s^2+12.1568s+0.451)
num=0.036; den=sym2poly(36.942*s^2+12.1568*s+0.451);
G=tf(num,den);
H=1;
Kp=1; Ki=0; Kd=0;
C=pid(Kp,Ki,Kd);
T=feedback(C*G,H);
step(T)
댓글 수: 2
nur
2014년 5월 5일
Chandrasekhar
2014년 5월 5일
you can use control system tool box of simulink to construct the pid controller.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 PID Controller Tuning에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!