EE 422G Notes: Chapter 7 Instructor: Cheung Page 7-1 State-Variable Technique Motivation of State-Variable Techniques: How to simulate an implementation? The transfer function (in both s- and z-domain) and the time convolution with impulse response allow us to compute the output for any input signal. However, both approaches do not govern a particular implementation of the system. For example, in chapter 8, we have described a number of implementations such as direct form I, direct form II, parallel form and cascade form for a discrete-system such as follows: 131111)(−−−+=zzzH Example of implementations: There are in fact infinite number of implementations for this transfer function because we can arbitrary add factors 2911322311323111131111)(..1111)(−−−−−−−−+−−+=⇒=−−⋅−+=zzzzzHcgeczczzzzH 1 Σ 1 z-1 31 Σ z-1 Σ y(nT) x(nT) 31 Σ x(nT) z-1 y(nT)EE 422G Notes: Chapter 7 Instructor: Cheung Page 7-2 Another implementation: To characterize each implementation, it is essential to keep track of the “internal state” of the system, which are the current value at each register (remember the state diagram in your digital logic design class?) It is important to have a implementation-based representation that allows us to 1. examine any signal within the implementation (for possible instability within the implementation); 2. identify if any part of the implementation is redundant, and 3. determine how “observable” (whether we can infer the internal state of the system based on outputs) and “controllable” (whether we can steer the internal state to a desirable configuration using input) the system is. These topics will be the focus of EE 571 (Feedback Control Design) and EE 572 (Discrete Control Design). In this course, we will introduce the main tool used in the design: the state-space representation. In addition, we will focus on the continuous-time version of the state-space representation. “Big picture” One can convert between three different representations which serve different purposes: Σ x(nT) y(nT) z-1 z-1 32 91− Σ 32 31− Transfer Function Differential Equation State-Variable Laplace Transform - I/O characteristics - analyze implementations - fundamental descriptionEE 422G Notes: Chapter 7 Instructor: Cheung Page 7-3 Brief Review of Matrix Algebra The most fundamental concept in linear algebra is matrix. Matrix is a rectangular array of numbers: +−==23434.4232.14321iBA Matrices are described by its number of rows and columns. When describing a matrix, we need to describe the number of rows first before columns. So, A is a “2 by 2 matrix” and B is a “3 by 2 matrix”. We can add and subtract matrices of the same dimensions only: Example: =−+832030015321 Matrix multiplication can only be applied to matrices if the number of columns in the first matrix matches the number of rows: Example: =⋅+⋅−⋅+⋅−⋅+⋅−⋅+⋅⋅+⋅⋅+⋅⋅+⋅⋅+⋅⋅+⋅=⋅− 333272215241914613151214111643154214411633253224312654321114132 In other words, the entry at the i-th row and j-th column of the resulting matrix is the inner product of the i-th row vector of the first matrix and the j-th column vector of the second matrix. Important: Matrix multiplication is not commutative. −⋅≠⋅− 114132654321654321114132 The right side is not even a matrix product! Does not work even for square matrices: ++++=⋅++++=⋅hdgbhcgafdebfceadcbahgfedhcfdgcebhafbgaehgfedcba Division in matrix algebra is represented via matrix inverse. CABCBA ⋅=⇒=⋅−1 We need to be careful when handling matrix inverse becauseEE 422G Notes: Chapter 7 Instructor: Cheung Page 7-4 a. Only square matrix has inverse – this is because inverse matrix represents an inverse linear transform, which is only feasible if the input and output dimensions are the same. b. Not all square matrix has inverse – a simple test: 0)det( exists 1≠⇔−AA det(A) denotes the determinant of a matrix and it is a real number. If A is 2x2, det(A) measures the area of the parallelogram formed by the two column vectors. If A is 3x3, det(A) measures the volume of the polyhedron formed by the three column vectors. For 2x2 matrix: Higher dimension determinant can be computed recursively: Or more compactly, ∑==kjjjCa111)det(A where )det()1(ijjiijC M+−= is called the i-jth co-factor and ijM is called a minor, which is defined a matrix formed by deleting the i-th row and j-th column from A. Example: 27225561214322113522141221143251det −=⋅+⋅−⋅−=⋅+⋅−⋅−=− Using the knowledge of determinant, we can numerically compute the matrix inverse. For 2x2 matrix =dcbaA, its inverse can be computed as −−−=−acbdbcad11A For general matrix, TnnnnCCCC=−KMMK11111)det(1AA where ijC is the i-jth
View Full Document