ans =
-2.0000
2.0000
-1.0000
a =
1.0000 %Results
returned by MATLAB provide no explanations
3.0000 %That's
why we say be careful when you interpret the results in the text
2.0000
b =
2.0000
-2.0000
-1.0000
k =
[]
a =
1.0000
-3.0000
2.0000
b =
2.0000
-2.0000
-1.0000
k =
[]
a =
3.0000
-6.0000
3.0000
b =
-3.0000
-2.0000
-1.0000
k =
[]
a =
0.5000 - 0.5000i
0.5000 + 0.5000i
b =
-2.0000 + 3.0000i
-2.0000 - 3.0000i
k =
[]
a =
-2.0000
2.0000
-2.0000
2.0000
b =
-2.0000
-1.0000
-1.0000
-1.0000
k =
[]
Section 2.8
%Section 2.8.1 - See Review Problem 14 below
%Section 2.8.2 - We'll do an illustration on
the typical unit step response of a first order function
>> t=0:0.1:10;
>> G=tf(1,[1.5 1]); %We
choose a function with steady state gain = 1 and time constant = 1.5
>> y=step(G,t);
>> plot(t,y)
>> hold
Current plot held
%We'll add red dotted lines to remind ourselves
that when t = time constant, the step response is at 63.2%
%In the following plot, the time constant is
1.5 as stated above
%
>> plot([1.5 1.5],[0 1],'r:') %the
vertical line at 1.5
>> 1-exp(-1)
ans =
0.6321
>> plot([0 1.5],[ans ans],'r:') %the horizontal line at 0.6321

Chapter 2 Review Problems
a =
0.5000
1.5000
-2.0000
b =
2.0000
-2.0000
-1.0000
k =
[]
ans =
2.0000
-2.0000
2.0000
-2.0000
ans =
0
0
-5
1
>> [a,b,k]=residue([1 1],p)
a =
0.0267
0.3333
-0.3600
-0.2000
b =
-5
1
0
0
k =
[]

