0% found this document useful (0 votes)
40 views5 pages

Homewrok #1 Solution

This document contains the solutions to two homework problems involving control systems design in Matlab. Problem 1 analyzes the root locus of a transfer function with code to plot it. Problem 2 designs a lead controller for a plant, tests it meets requirements like overshoot less than 10% and rise time less than 1 second, and plots the open loop transfer function root locus and closed loop step response. Problem 3 states there was a problem 3 but it is not shown. Problem 4 is also not shown. The document then discusses using iterations of changing K, alpha and T values to design a lead controller for another plant that meets phase margin above 50 degrees and bandwidth above 1 rad/sec, as required, and includes the

Uploaded by

Stoyan Stoyanov
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)
40 views5 pages

Homewrok #1 Solution

This document contains the solutions to two homework problems involving control systems design in Matlab. Problem 1 analyzes the root locus of a transfer function with code to plot it. Problem 2 designs a lead controller for a plant, tests it meets requirements like overshoot less than 10% and rise time less than 1 second, and plots the open loop transfer function root locus and closed loop step response. Problem 3 states there was a problem 3 but it is not shown. Problem 4 is also not shown. The document then discusses using iterations of changing K, alpha and T values to design a lead controller for another plant that meets phase margin above 50 degrees and bandwidth above 1 rad/sec, as required, and includes the

Uploaded by

Stoyan Stoyanov
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/ 5

Homework #1

Problem #1:
MatLab code:
clear
h = tf([1 1],[1 2 25 50 0]);
rlocus(h)

Problem #2:
Matlab code:
K=10;
a = tf([10],[1 0 0])
b = tf([1 0.5],[1 16])

gs=K*a*b
d=gs/(1+gs);

step(d)
figure(1)
S = stepinfo(d)
figure(2)
rlocus(gs)

Output:
>> H1P2
a= Given Transfer function
10
---
s^2
Continuous-time transfer function.
b= Lead Compensation
s + 0.5
-------
s + 16
Continuous-time transfer function.
gs = Open Loop Transfer Function
100 s + 50
------------
s^3 + 16 s^2
Continuous-time transfer function.

S=

RiseTime: 0.2213
SettlingTime: 2.9684
SettlingMin: 0.9040
SettlingMax: 1.0901
Overshoot: 9.0138
Undershoot: 0
Peak: 1.0901
PeakTime: 0.5304

Overshot is less than 10% and Rise Time is less than 1 s so the Requirements for the controller
are met.

Root Locus of Given Transfer Function:


Root Locus of Lead Compensator Open Loop Transfer Function:

Frequency Response for Closed Loop system with lead compensator:

Problem #3
Problem #4

To design the controller the following matlab code was used:


K=5;
T=0.8
alpha=0.1
a = tf([5],[1 0 0])
b = tf([T 1],[alpha*T 1])

gs=K*a*b
d=gs/(1+gs);
figure(1)
margin(b)
figure(2)

To achieve a result where the reqirements were satisfied several iterations were carried out
changing K, alpha and T.
Bode plot of Lead Compensator:

Closed Loop Response Bode Plot

Phase margin is 58.9 deg > 50 deg, and Bandwidth is about 2 rad/s > 1 rad/s, so the
Requirements for the controller are met.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy