You are on page 1of 4

Linear Control Systems lab Manual

Lab # 5

Analyze the Step Response of a System Using PID Controller

Name: Raja Rohaan Abdullah

Semester: 6th

Section: A

Mis id: 30558

Department of Electrical Engineering

Submitted to: Engr. Saqib Riaz


Case 1
>> n1=[1];
>> d1=[1 1 0];
>> g=tf(n1,d1);
>> figure(1)
>> step(n1,d1)
>> [n1cl,d1cl]=cloop(n1,d1,-1);
>> g=tf(n1cl,d1cl);
>> figure(2)
>> step(n1cl,d1cl)

Case-2:
>> n1=[1];
>> d1=[1 0 5];
>> g=tf(n1,d1);
>> figure(1)
>> step(n1,d1)
>> [n1cl,d1cl]=cloop(n1,d1,-1);
>> g=tf(n1cl,d1cl);
>> figure(2)
>> step(n1cl,d1cl)
Case-3:
>> n1=[1];
>> d1=[0 1 5];
>> g=tf(n1,d1);
>> figure(1)
>> step(n1,d1)
>> [n1cl,d1cl]=cloop(n1,d1,-1);
>> g=tf(n1cl,d1cl);
>> figure(2)
>> step(n1cl,d1cl)

You might also like