Result
R(s)
G( s)
Y(s)
feedback
GK K 3 1 GK s 2s 2 4s K
Result
K=[0:0.5:20]; for i=1:length(K) num=[K(i)]; den=[1 2 4 0]; sys=feedback(tf(num,den),[1]); P(:,i)=pole(sys); end plot(real(P),imag(P),'x'),grid xlabel('Real axis'), ylabel('Imaginary axis')
Y(s)
Imaginary axis
-1
-2
-3 -3
-2.5
-2
-0.5
0.5
11
Lab Assignments
Lab 6:
Solve Problems MP6.6, and MP6.8(b). For MP6.6, you don't have to use the RouthHurwitz method. Lab report should at least contain:
1. The MATLAB code and plot for MP6.6. 2. The MATLAB code and plot for MP6.8(b) with comments.
Lab Assignments:MP6.6
Consider the feedback control system in Figure MP6.6. Using the for function , develop a MATLAB script to compute the closed-loop transfer function poles for 0 K 5 and plot the results denoting the poles with the " " symbol. Determine the maximum range of K for stability with the Routh-Hurwitz method. Compute the roots of the characteristic equation when K is the minimum value allowed for stability.
R s
1 s 5s K 3 s K
3 2
Y s
13
Lab Assignments:MP6.8(b)
Consider the feedback control system in Figure MP6.8. (b) Using MATLAB, plot the pole locations as a function of 0<K1 <30 and comment on the results.
Plant
R s
5 s s 10
Y s
Controller
5 s s 10
14