please provide me with complete MATLAB CODE Part A: Root Locus Desi From the tex
ID: 3576491 • Letter: P
Question
please provide me with complete MATLAB CODE
Part A: Root Locus Desi From the text (Chapter 5 p.400), Do problem 19, parts a,b,c,d Group A uses the plant given in the text (in problem 19), and Group B uses the following different plant Gp(s) 1/ (s(s+2)(s+40) i.e. By following the design procedures outlined in the relevant sections, from section 5.5 (uncompensated) 5.8, use root locus methods to design each of the following tracking systems: a Uncompensated, using Gc(s) K Ku so that the damping ratio of the dominant roots is 0.707 b) Cascade lag compensated, d 10, choosing a for maximum relative stability. Let KFKu. c Rate Feedback, using K 2 Ku choosing A for maximum relative stability. d) Cascade lead compensation with d 10. Let K (Kudand choose a for maximum relative stability. For each closed-loop system design, find i) the steady state errors to a unit step, ramp and parabolic inputs ii) the relative stability of the system, and the damping ratio of any complex conjugate poles. Include all relevant Root Locus plots required for the design, clearly labeled and specifying the information obtained from each plot In particular, your submitted work should show how the gains and corresponding closed-loop poles, as specified in problems D5.12 and D5.13 are determined.Explanation / Answer
function y =inmat(A,B)
% This may be a program designed to multiply 2 matrices
% together by victimisation the real.
%
% Written by Martha Allen
%
% Call syntax: inmat(A,B)
% Input: AN mxp matrix A ANd an pxn matrix B
% Output: the merchandise AB that is AN mxn matrix C
m= size(A,1); % gets the row size of matrix A
p= size(A,2); % gets the column size of matrix A
n= size(B,2); % gets the column size of matrix B
f= size(B,1); the troubles gets the row size of matrix B
if f==p
C=zeros(m,n); % initializes the variable C
for i=1:m % starts the loop
for j=1:n % starts the loop
C(i,j)=C(i,j) + A(i,:) * B(:,j); the troubles updates C
end % ends loop
end % ends loop
ans = C % prints the ultimate answer C
else
error('The dimensions of the matrices should agree.')
end
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.