Skip to content

Instantly share code, notes, and snippets.

@HadiElnemr
Created June 22, 2021 20:33
Show Gist options
  • Save HadiElnemr/1a2ce66db2d740ed62a1bfa5f7e2bb1b to your computer and use it in GitHub Desktop.
Save HadiElnemr/1a2ce66db2d740ed62a1bfa5f7e2bb1b to your computer and use it in GitHub Desktop.
clear, clc
num = [11.11 0 0];
den = [1 0 -9.81/11.11];
plant = tf(num,den);
kp=65;
ki=1.4;
kd=280;
PID = pid(kp,ki,kd)
ol = series(plant, PID)
cl = feedback(ol,1)
step(plant)
%impulse(plant)
%rlocus(plant)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment