This document reviews signals and systems in control systems, including Laplace transform, bode diagram, and discrete time systems. It also covers least squares solutions in control systems.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Control systems Student name
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
QUESTION 1 REVIEW OF SIGNALS AND SYSTEMS ´x(t)+2ζwn´x(t)=wn 2U(t) ζ=0.707 wn=2 ´x(t)+2(2)(0.707)´x(t)=4U(t) ´x(t)+2.828´x(t)=4U(t) Performing Laplace transform considering zero initial conditions, S2X(s)+2.828SX(s)=4U(s) X(s) U(s)=4 s2+2.828s Performing an inverse Laplace transform to determine the time series. Using the partial solutions, L−1 {4 s2+2.828s} 4 s2+2.828s=1000 707s−1.41443 s+2.828 L−1 {1000 707s−1.41443 s+2.828} L−1 {1000 707s}−L−1 {1.41443 s+2.828} x(t)=1000 707−1.41443e−2.828t Matlab implementation to plot the time response, t=0:0.1:20; Xt=(1000/707)-(1.41443)*exp(-2.8282*t); figure(1) plot(t,Xt,'b-.') 1
gridon title('Time Response ') xlabel('time(sec)') ylabel('x(t)') legend('x(t)') 02468101214161820 time(sec) -0.2 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 x(t) Time Response x(t) Part C Changing the value ofζ=0.005, the bode diagram for the system is given as, ´x(t)+2(2)(0.005)´x(t)=4U(t) X(s) U(s)=4 s2+0.02s To obtain the magnitude, −10log[1−2(1−2ζ2)(ω ωn)2 +(ω ωn)4 ] To obtain the phase, 2
atan2[−2ζω ωn ,1− (ω ωn)2 ] When the value of w=1.0 rad/sec, −10log[1−2(1−2(0.005)2)(1 2)2 +(1 2)4 ] Magnitude=3.9992 Phase=−178.8542 When the value of w=10.0 rad/sec, −10log[1−2(1−2(0.005)2)(10 2)2 +(10 2)4 ] Magnitude=0.04 Phase=−179.8854 When the input is sinusoidal, the steady state output for several cycles is obtained using MATLAB, 3
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
02468101214161820 time(sec) 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 x(t) Time Response x(t) Ut=sin(10*t); Xt1=(1000/707)-(1.41443)*exp(-2.8282*t).*Ut; figure(2) plot(t,Xt1,'r-.') gridon title('Time Response ') xlabel('time(sec)') ylabel('x(t)') legend('x(t)') Comment The time domain captures the different input values unlike the frequency domain. The rise time is different such that the sinusoidal input is different from a constant input. The sinusoidal input oscillates shortly before it settles down. QUESTION 2 REVIEW OF DISCRETE TIME SYSTEMS The dynamic system for the differential equation considering the initial conditions is zero, 4
´x(t)+2ζωn´x(t)+ωn 2x(t)=ωn 2u(t) The state space matrix form of the equation, ´x(t)=Ax(t)+Bu(t) y(t)=cx(t)+Du(t) Expressing the equation in transfer function, s2X(s)+2ζωnsX(s)+ωn 2X(s)=ωn 2U(s) X(s) U(s)=ωn 2 s2+2ζωns+ωn 2 The state space matrix form is given as a collection of 4 variables, A= [−2ζωn−ωn 2 u(t)0] B=[u(t) 0] C=[0ωn 2] D=0 The discrete time state space equation is given as, X(s) U(s)=4 s2+2.8284s+4 Assuming there is a zero order hold, ZOH, on the input signal u(t), A= [−2.8284−4.0 10] B=[1 0] C=[04] D=0 Obtaining the Z transform of thestate space equations, 5
zX(z)=zx(0)=AdX(z)+BdU(z) X(z)=[zIn−Ad]−1 {zx(0)+BdU(z)} [zIn−Ad]−1z=[−1 zAd] −1 In+Adz−1+Ad 2z−2+…+Ad iz−i+… Converting back to time domain and finding the second order difference equation based on the sampling rate, [zIn−Ad]−1z=In+Adz−1+Ad 2z−2+…+Ad iz−i+… Z−1 {[zIn−Ad]−1z}={In,Ad,Ad 2,…,Ad i,…} {Ad k}k=0 ∞ The MATLAB implementation, disp('Converting to Z transform') [Z,P,K] = tf2zp(num1,den1); % Returning the solutionto time domain [nm,den]=zp2tf(Z,P,K) QUESTION 3 LEAST SQUARES SOLUTIONS y(k)=1.5y(k−1)+0.7y(k−2)=u(k−1)+0.5u(k−2)+e(k) Creating datasets, function[a0,a1]=leastSquareSolutions(x,y) x=x(:); y=y(:); X=[x,ones(numel(x),1)]; a = (X'*X)\(X'*y); a0=a(2); a1=a(1); end The standard deviation of the parameter estimates is given as, std=σ2(squaredvariance) a0=1.72,a1=2.64 6
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.