You are on page 1of 7

IntroductiontoControls:MEM255

Homework5

Problem1
Forthefollowingcircuit,theswitchclosesatt=0.Findthetransferfunctionforthiscircuit,wherethe
outputisthevoltageacrossthecapacitor.

a) FindtheTimeConstant,RiseTime,andSettlingTimeforthevoltageacrossthe
capacitor.
b) PlottheresponseofthesystemusingMATLABandidentifythevaluesparametersfroma).

IntroductiontoControls:MEM255
Homework5

%% MEM 255 Summer 2012, HW4, Problem 1


R = 1;
C = 0.5;
num = 1/(R*C);
den = [1, 1/(R*C)];
G = tf(num, den)
t = 0:0.1:5;
vi = 5*ones(size(t)); %generate vector of 5's (5*1's) to match size of t
vector
figure(1)
lsim(G,vi,t)
title('MEM 255 Summer 2012, HW4, Problem 1')
xlabel('Time')
ylabel('Response (Volts)')
legend('V_c(t)')

MEM 255 Summer 2012, HW4, Problem 1


5
V c(t)

4.5
4

Response (Volts)

3.5
3
2.5
2
1.5
1
0.5
0

0.5

1.5

2.5
Time (sec)

3.5

4.5

IntroductiontoControls:MEM255
Homework5

Problem2
Forthefollowingtransferfunctionfind & n , and assuming a
unit step input, find Ts ,Tp ,Tr , and %OS :

T s

16
s 3s 16
2

IntroductiontoControls:MEM255
Homework5

Problem3
ForthefollowingMechanicalSystem:
a) Findthetransferfunction G s

X s

F s

b) Find & n , and assuming a step input, find Ts ,Tp ,Tr , and %OS
c)UsingMATLAB,plottheresponsetoaconstantforceof1Nappliedatt=0.

IntroductiontoControls:MEM255
Homework5

%% MEM 255 Summer 2012, HW4, Problem 3


wn = sqrt(11)
z = 5/(2*wn)
alpha = (1/3)/wn^2
Ts = 4/(z*wn)
Tp = pi/(wn*sqrt(1-z^2))
OS = exp(-z*pi/sqrt(1-z^2))*100
num = alpha*wn^2
den = [1 2*z*wn wn^2]
G = tf(num, den)
figure(3)
% t = 0:0.1:5;
% f = ones(size(t)); %generate vector of 1's to match size of t
vector
% lsim(G,f,t)
step(G) %alternate to lsim
title('MEM 255 Summer 2012, HW4, Problem 3')
xlabel('Time')
ylabel('Response (m)')
legend('x(t)')

MEM 255 Summer 2012, HW4, Problem 3


0.035
x(t)
0.03

Response (m)

0.025

0.02

0.015

0.01

0.005

0.5

1.5
Time (sec)

2.5

IntroductiontoControls:MEM255
Homework5

Problem4
Forthefollowingsystem:
a) FindtheTransferFunction G s

b) ForastepTorqueinput,findTs ,Tp , and %OS for2

2 s
T s

IntroductiontoControls:MEM255
Homework5

You might also like