% MATLAB allows root loci to be plotted with the
% rlocus(GH) command, where G(s)H(s) = numgh/dengh and GH is an LTI transfer-
% function object. Points on the root locus can be selected interactively
% using [K,p] = rlocfind(GH) command. MATLAB yields gain(K) at
% that point as well as all other poles(p) that have that gain. We can zoom
% in and out of root locus by changing range of axis values using
% command axis([xmin,xmax,ymin,ymax]). root locus can be drawn
% over grid that shows constant damping ratio(z) and constant natural
% frequency(wn) curves using sgrid(z,wn) command. To plot multiple
% z and wn curves, use z = zmin:zstep:zmax and wn = wnmin:wnstep:wnmax to
% specify a range of values.
clf % Clear graph.
numgh insert yours; % Define numerator of G(s)H(s).
dengh= insert yours; % Define denominator of G(s)H(s).
'G(s)H(s)' % Display label.
GH=tf(numgh,dengh) % Create G(s)H(s) and display.
rlocus(GH) % Draw root locus.
z=0.2:0.05:0.5; % Define damping ratio values: 0.2 to
% 0.5in steps of 0.05.
wn=0:1:10; % Define natural frequency values: 0
% to 10 in steps of 1.
sgrid(z,wn) % Generate damping ratio and natural
% frequency grid lines for root
% locus.
title('Root Locus') % Define title for root locus.
'Hit Enter to Continue to Close-Up'
pause %Pause
rlocus(GH) % Draw close-up root locus.
axis([-3 1 -4 4]) % Define range on axes for root locus
% close-up view.
title('Close-up') % Define title for close-up root
% locus.
z=0.45; % Define damping ratio line for
% overlay on close-up root locus.
wn=0; % Suppress natural frequency overlay
% curves.
sgrid(z,wn) % Overlay damping ratio curve on
% close-up root locus.
for k=1:10 % Loop allows 10 points to be selected
% (z=0.45, jw crossing, breakaway)
[K,p]=rlocfind(GH) % Generate gain, K, and closed-loop
% poles, p, for point selected interactively on
% root locus.
end % End loop.
Code:
% MATLAB allows root loci to be plotted with the
% rlocus(GH) command, where G(s)H(s) = numgh/dengh and GH is an LTI transfer-
% function object. Points on the root locus can be selected interactively
% using [K,p] = rlocfind(GH) command. MATLAB yields gain(K) at
% that point as well as all other poles(p) that have that gain. We can zoom
% in and out of root locus by changing range of axis values using
% command axis([xmin,xmax,ymin,ymax]). root locus can be drawn
% over grid that shows constant damping ratio(z) and constant natural
% frequency(wn) curves using sgrid(z,wn) command. To plot multiple
% z and wn curves, use z = zmin:zstep:zmax and wn = wnmin:wnstep:wnmax to
% specify a range of values.
clf % Clear graph.
numgh=[1,-4,20]; % Define numerator of G(s)H(s).
dengh=[1,6,8]; % Define denominator of G(s)H(s).
disp('G(s)H(s)'); % Display label.
GH=tf(numgh,dengh); % Create G(s)H(s) and display.
disp(GH);
rlocus(GH);
set(gca,'FontSize',20);% Draw root locus.
z=0.2:0.05:0.5; % Define damping ratio values: 0.2 to 0.5in steps
of 0.05.
wn=0:1:10; % Define natural frequency values: 0 to 10 in steps of
1.
sgrid(z,wn) % Generate damping ratio and natural frequency grid
lines for root locus.
title('Root Locus','FontSize',20); % Define title for root
locus.
pause; %Pause
%%
figure;
rlocus(GH) % Draw close-up root locus.
axis([-3 1 -4 4]) % Define range on axes for root locus close-up
view.
title('Close-up'), % Define title for close-up root locus.
z=0.45; % Define damping ratio line for overlay on close-up root
locus.
wn=0; % Suppress natural frequency overlay curves.
sgrid(z,wn) % Overlay damping ratio curve on close-up root locus.
for k=1:10 % Loop allows 10 points to be selected
% (z=0.45, jw crossing, breakaway)
[K,p]=rlocfind(GH); % Generate gain, K, and
closed-loop
disp(K)
% poles, p, for point selected interactively on
% root locus.
end % End loop.
Output:
Figure:1-Root Locus:
Figure-2: selected points and Gain:
We found for zeta = 0.45, K= 0.417
% MATLAB allows root loci to be plotted with the % rlocus(GH) command, where G(s)H(s) =...
% We can couple the design of gain on the root locus with a % step-response simulation for the gain selected. We introduce the command % rlocus(G,K), which allows us to specify the range of gain, K, for plotting the root % locus. This command will help us smooth the usual root locus plot by equivalently % specifying more points via the argument, K. Notice that the first root locus % plotted without the argument K is not smooth. We...
Matlab needs to be done by matlab Create a root locus plot to determine design a control system for the following system which has a standard negative unity feedback system. G(s) = K (s2 - 4s +20)/[(s+2)(s+4)] Damping ratio goal for the control system gain K is to maintain a 45% damping ratio, or zeta = 0.45. Select the gain, K, using the root locus software. O 0.211 O 0.417 0.987 O 1.97 At what gain K does the system...
3. Use MATLAB to plot the root locus of S +4 s 6s +13 H(s)1 Provide the commands you used and a copy of root locus figure. Also calculate the angles that the root locus leaves the complex poles. Use sgrid to plot lines of 0.7,0.8,0.9, and 0.99 and wn circles of 2,4, and 6. Provide command and plot of root locus with sgrid. Click on the root locus to determine the gain (K) where ζ-0.9 and ζ-0.99 intersect the...
Given the transfer function 4. G(s)H(s) - (s + 8) (s +6s + 13) (a) Sketch the root locus plot using Matlab. (b) Estimate the system gain when the damping ratio is 7 0.707 (c) Add a simple pole, (s 2), to G (s)H (s) and examine the resulting root locus (d) Add a simple zero, (s +2), to G(s)H(s) and examine the resulting root locus Given the transfer function 4. G(s)H(s) - (s + 8) (s +6s + 13)...
1 GH(s) (s24s3s2 + 10s 24) sketch the root locus and find the following: [Section: 8.5 a. The breakaway and break-in points b. The jo-axis crossing c. The range of gain to keep the system stable d. The value of K to yield a stable system with second-order complex poles, with a damping ratio of 0.5 1 GH(s) (s24s3s2 + 10s 24) sketch the root locus and find the following: [Section: 8.5 a. The breakaway and break-in points b. The...
Consider a negative feedback system whose open-loop transfer function is: G(s)H(s)=K/(s(s+1)) Write a MATLAB program to obtain the root-locus plot of G(s)H(s). [2 marks] What are the locations of poles when K = 0.19. [2 marks] When K = 0.4, what are the locations of poles? [3 marks] Find values of the damping ratio, % overshoot and frequency when K = 0.4. [3 marks] Write a MATLAB program to obtain a bode plot of G(s)H(s) when K = 1. [2...
3. Consider the system shown below. For this system. G(s) s(s+1)(s 2) H(s)1 We assume that the value of the gain K is nonnegative. Sketch the root locus plot and determine the K value such that the damping ratio of a pair of dominant complex-conjugate closed-loop poles is 0.5. Ri)1 C(s) 3. Consider the system shown below. For this system. G(s) s(s+1)(s 2) H(s)1 We assume that the value of the gain K is nonnegative. Sketch the root locus plot...
only b and c please 1 Consider the system whose transfer function is given by: G(S) == (2s +1)(s+3) unction is given by: G(s) - (a) Use the root-locus design methodology to design a lead compensator that will provide a closed-loop damping 5 =0.4 and a natural frequency on =9 rad/sec. The general transfer function for lead compensation is given by D(5)=K (977), p>z, 2=2 (b) Use MATLAB to plot the root locus of the feed-forward transfer function, D(s)*G(s), and...
1. Write the MATLAB commands (tf.) and zpk (...)) that yield the following trans fer functions: ii) Hy=1+1+ ii) H3-3-*+-1 (s + 1)( -2) iv) H. - 3)(8 + 4) 2. Consider the feedback system: C(0) = K * G(s) Determine the values of K, a, and b of C(s) such that the dominant-closed loop poles are located at $12 = -1 j. Use the root locus method. Provide the locations of the dominant poles. You should include the root...
Please be specific about the root locus and Matlab code. Problem 2 For the feedback system shown in the diagram below, use the root locus design method to find the value of the gain K that results in dominant closed-loop poles with a damping ratio Ç-0.5- Verify your solution with Matlab, and attach the plotted solution.