0% found this document useful (0 votes)
147 views

COMSATS University Islamabad (Sahiwal Campus) : Lab Manual

This document is a lab manual for control systems that contains instructions for MATLAB exercises. It includes 3 tasks for an introduction to MATLAB lab: 1) The first task uses rlocus to plot the root locus of a system with automatically determined gain. The plot shows the system is stable. 2) The second task uses rlocus with a specified gain vector k to plot the root locus. 3) The third task provides instructions for another MATLAB exercise, but does not include the code or output.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
147 views

COMSATS University Islamabad (Sahiwal Campus) : Lab Manual

This document is a lab manual for control systems that contains instructions for MATLAB exercises. It includes 3 tasks for an introduction to MATLAB lab: 1) The first task uses rlocus to plot the root locus of a system with automatically determined gain. The plot shows the system is stable. 2) The second task uses rlocus with a specified gain vector k to plot the root locus. 3) The third task provides instructions for another MATLAB exercise, but does not include the code or output.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Lab Manual

Control Systems

COMSATS University Islamabad


(Sahiwal Campus)

Lab Manual
CONTROL SYSTEMS

Submitted to:

Engr. Rida Maamoor


Lab Engineer
Electrical & Computer Engineering Department

Submitted by:

Student Name

Registration #

Checked by:

_______________

Department of Electrical & Computer Engineering


Lab Manual
Control Systems

Lab 01-Introduction to MATLAB


Task 01:

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:

You might also like