COMSATS University Islamabad (Sahiwal Campus) : Lab Manual
COMSATS University Islamabad (Sahiwal Campus) : Lab Manual
Control Systems
Lab Manual
CONTROL SYSTEMS
Submitted to:
Submitted by:
Student Name
Registration #
Checked by:
_______________
Matlab Code:
clc;
clear all;
close all;
num=[1 3];
den=[1 5 20 16 0];
rlocus(num,den)
Output:
Analysis: for this system(defined in sample space) , rlocus plots the root locus of the system with the gain vector
automattically determined. the graph tells us the system is stable.
Task 02:
Matlab Code:
clc;
clear all;
close all;
k=[0;1;10;100];
num=[1 3];
den=[1 5 20 16 0];
[r,k]=rlocus(num,den,k)
rlocus(num,den,k)
Lab Manual
Control Systems
Output:
Analysis: for any system defined in sample space, rlocus(num,den,k) plots the root locus of the system with the gain
vector k.
Task 03:
Matlab Code: