DiscreteTime SystemPPT学习教案_第1页
DiscreteTime SystemPPT学习教案_第2页
DiscreteTime SystemPPT学习教案_第3页
DiscreteTime SystemPPT学习教案_第4页
DiscreteTime SystemPPT学习教案_第5页
已阅读5页,还剩29页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、会计学1DiscreteTime System2 Now consider single-input single-output discrete-time system defined by the input/output difference equationMiiNiiinxbinyany01where n is the integer-valued discrete-time index, xn is the input, and yn is the output. Here it is assumed that the coefficients a1, a2, , aN and b

2、0, b1, b2, , bM are constants.(2.1)第1页/共34页3 Since Eq. (2.1) is a linear difference equation with constant coefficients, the system defined by the equation is linear, time invariant, and finite dimensional. The integer N in (2.1) is the order or dimension of the system. Also, any discrete-time syste

3、m in the form of Eq. (2.1) is causal since the output yn at time n depends only on previous values of the output and the current and previous values of the input xn. Unlike linear input/output differential equations, linear input/output difference equations can be solved by a direct numerical proced

4、ure. More precisely, the output yn for some finite range of integer values of n can be computed recursively as follows. First, rewrite (2.1) in the form 第2页/共34页4MiiNiiinxbinyany01(2.2) Then setting n=0 in (2.2) gives y0 a1y1 a2y2 aNyN + b0 x0 b1x1 bMxMThus the output y0 at time 0 is a linear combin

5、ation of y1, y2, , yN and x0, x1, , xM.Setting n=1 in (2.2) gives y1 a1y0 a2y1 aNyN+1 + b0 x1 b1x0 bMxM+1So y1 is a linear combination of y0, y1, , yN+1 and x1, x0, , xM+1.第3页/共34页5 If this process is continued, it is clear that the next value of the output is a linear combination of the N past valu

6、es of the output and M+1 values of the input. At each step of the computation, it is necessary to store only N past values of the output (plus, of course, the input values). This process is called an Nth-order recursion. Here the term recursion refers to the property that the next value of the outpu

7、t is computed from N previous values of the output (plus the input values). The discrete-time system defined by (2.1) or (2.2) is sometimes called a recursive discrete-time system or a recursive discrete-time filter since its output can be computed recursively. Here it is assumed that at least one o

8、f the coefficients ai in (2.1) is nonzero. If all the ai are zero, the input/output difference equation (2.1) reduces to 第4页/共34页6In this case, the output at any fixed time point depends only on values of the input xn, and thus the output is not computed recursively. Such systems are said to be nonr

9、ecursive. Finally, from (2.1) or (2.2) it is clear that the computation of the output response yn for n0 requires that the N initial conditions y1, y2, , yN must be satisfied. In addition, if the input xn is not zero for n0, the evaluation of (2.1) or (2.2) also requires the M initial input values x

10、1, x2, , xM. Miiinxbny0第5页/共34页7Consider the discrete-time system given by the second-order input/output difference equation yn 1.5yn1 +yn2 2xn2 (2.3)Write (2.3) in the form (2.2) results in the input/output equation yn 1.5yn1 yn2 +2xn2 (2.4)Now suppose that the input xn is the discrete-time unit-st

11、ep function un and that the initial output values are y2=2 and y1=1. Thus setting n=0 in (2.4) gives y0 1.5y1 y2 +2x2 (1.5)(1) 2 +(2)(0)= 0.5第6页/共34页8Setting n=1 in (2.4) givesy1 1.5y0 y1 +2x1 (1.5)(0.5) 1 +(2)(0)= 1.75 Continuing the process yieldsy2 1.5y1 y0 +2x0 (1.5)(1.75) 0.5 +(2)(1)= 0.125 y3

12、1.5y2 y1 +2x1 (1.5)(0.125) 1.75 +(2)(1)= 3.5625 and so on. In solving (2.1) and (2.2) recursively, the process of computing the output yn can begin at any time point desired. In the development above, the first value of the output that was computed was y0. If the first desired value is the output yq

13、 at time q, the recursive process should be started by setting n=q in (2.2). In this case, the initial values of the output that are required are yq 1, yq 2, , yq N 第7页/共34页9By solving (2.1) or (2.2) recursively, it is possible to generate an expression for the complete solution yn resulting from in

14、itial conditions and the application of the input xn. The process is illustrated by considering the first-order linear difference equation yn = ayn 1 +bxn, n =1, 2, (2.5)with the initial condition y0. First, setting n =1, n =2 and n =3 in (2.5) gives y1 = ay0 +bx1, (2.6) y2 = ay1 +bx2, (2.7) y3 = ay

15、2 +bx3, (2.8)Inserting the expression (2.6) for y1 into (2.7) gives y2 = a( ay0 +bx1) +bx2, = a2y0 abx1 +bx2, (2.9)第8页/共34页10Inserting the expression (2.9) for y2 into (2.8) yields y3 = a(a2y0 abx1 +bx2) +bx3, = a3y0 +a2bx1 abx2+bx3, (2.10)From the pattern in (2.6), (2.9) and (2.10), it can be seen

16、that for n1, niinnibxayany1)(0)(This equation gives the complete output response yn for n1 resulting from initial condition y0 and the input xn applied for n1. 第9页/共34页11As an application of the difference equation framework, in this section it is shown that a linear constant-coefficient input/outpu

17、t differential equation can be discretized in time, resulting in a difference equation that can be then solved by recursion. This discretization in time actually yields a discrete-time representation of the continuous-time system defined by the given input/output differential equation. The developme

18、nt begins with the first-order case. 第10页/共34页12Consider the linear time-invariant continuous-time system with the first-order input/output differential equation )()()(tbxtaydttdy (2.11) where a and b are constants. Eq. (2.11) can be discretized in time by setting t=nT, where T is a fixed positive n

19、umber and n takes on integer values only. This results in the equation )()()(nTbxnTaydttdynTt (2.12) 第11页/共34页13Now the derivative in (2.12) can be approximated by TnTyTnTydttdynTt)()()(If T is suitable small and y(t) is continuous, the approximation (2.13) to the derivative dy(t)/dt will be accurat

20、e. This approximation is called the Euler approximation of the derivative. Inserting the approximation (2.13) into (2.12) gives)()()()(nTbxnTayTnTyTnTy (2.13) (2.14) To be consistent with the notation that is being used for discrete-time signals, the input signal x(nT) and the output signal y(nT) wi

21、ll be denoted by xn and yn, respectively; that is, xn= x(t)| t=nT and yn= y(t)| t=nT第12页/共34页14In terms of this notation, (2.14) becomes 1nbxnayTnynyFinally, multiplying both sides of (2.15) by T and replacing n by n 1 results in a discrete-time approximation to (2.11) given by the first-order input

22、/output difference equation yn yn 1 = aTyn 1+ bTxn 1, or yn = (1 aT)yn 1+ bTxn 1, (2.16)The difference equation is called the Euler approximation of the given input/output differential equation (2.11) since it is based on the Euler approximation of the derivative. (2.15) 第13页/共34页15The discrete valu

23、es yn= y(nT) of the solution y(t) to (2.11) can be computed by solving the difference equation (2.16). The solution of (2.16) with initial condition y0 and with xn=0 for all n given by yn=(1 aT)n y0, n =0, 1, 2, (2.17)The exact solution y(t) to (2.11) with initial condition y(0) and zero input is gi

24、ven by (2.18) 0 ),0(e)(tytyatTo analyze the approximation error between (2.17) and the exact solution (2.18) of y(t), set t=nT in (2.18) gives the following exact expression for yn yn=eanT y0= (eaT)n y0, n =0, 1, 2, (2.19)Further, inserting the expansion 第14页/共34页16221e3322TaTaaTaTfor the exponentia

25、l into (2.19) results in the following exact expression for the values of y(t) at the times t=nT: (2.20) Comparing (2.17) and (2.20) shows that (2.17) is an accurate approximation if 1 aT is a good approximation to the exponential eaT. This will be the case if the magnitude of aT is much less than 1

26、, in which case the magnitude of aT will be much smaller than the quantity 1 aT. , 2 , 1 , 0 ,02213322nyTaTaaTnyn第15页/共34页17Consider the RC circuit given in Fig. 2-1. The circuit has the input/output differential equation)(1)(1)(txCtyRCdttdywhere x(t) is the current applied to the circuit and y(t) i

27、s the voltage across the capacitor. (2.21) Fig. 2-1第16页/共34页18 The difference equation (2.22) can be solved recursively to yield approximate values yn of the voltage on the capacitor resulting from initial voltage y0=0, input current xn= x(nT)= u(nT) and R=C=1. The recursion can be carried out using

28、 the MATLAB program in the course text.Writing (2.21) in the form (2.11) reveals that in this case, a=1/(RC) and b=1/C . Hence, the discrete-time representation (2.16) for the RC circuit is given by 1 11nxCTnyRCTny(2.22) 第17页/共34页19 To compare with the exact solution of (2.21), the plots of the resu

29、lting output (the unit-step response) for the approximation are displayed in Fig. 2-2(a) for T=0.2 and Fig. 2-2(b) for T=0.1 along with the exact unit-step response y(t)=(1et)u(t). Obviously, the approximation error in Fig. 2-2(b) is smaller than that in Fig. 2-2(a) as the sampling interval T become

30、s smaller. 0246800.20.40.60.81Time(sec)y(t)Approximation SolutionExact Solution0246800.20.40.60.81Time (sec)y(t)Approximation SolutionExact SolutionFig. 2-2(a)Fig. 2-2(b)第18页/共34页20The discretization technique for first-order differential equations described above can be generalized to second- and h

31、igh-order differential equations. In this second-order case the following approximations can be used:TnTyTnTydttdynTt)()()(2.23) TdttdydttdydttydnTtTnTtnTt|/ )(|/ )()(22(2.24) Combining (2.23) and (2.24) yields the following approximation to the second derivative:222)()(2)2()(TnTyTnTyTnTydttydnTt(2.

32、25) 第19页/共34页21The approximation (2.25) is the Euler approximation of the second derivative. Now consider a linear time-invariant continuous-time system with the second-order input/output differential equation)()()()()(010122txbdttdxbtyadttdyadttyd(2.26) Setting t=nT in (2.26) and using the approxim

33、ations (2.23) and (2.25) results in the following time discretization of (2.26): 1 1 12201012nxbTnxnxbnyaTnynyaTnynyny(2.27) 第20页/共34页22Replacing n by n 2 in (2.27) and multiplying both sides of (2.27) by T2 yields the difference equation yn +(a1T 2) yn 1+ (1 a1T + a0T2) yn 2 = b1T xn 1+( b0T2 b1T)

34、xn 2 (2.28)Eq. (2.28) is the discrete-time approximation to the second-order input/output difference equation (2.26). The discrete values y(nT) of the solution y(t) to (2.26) can be computed by solving the difference equation (2.28). To solve (2.28), the recursion will be started at n=2 so that the

35、initial values y0= y(0) and y1= y(T) are required. The initial value y(T) can be generated by using the approximationTyTyy)0()()0(2.29) where denotes the derivative of y(t). )0(y 第21页/共34页23Solving (2.29) for y(T) gives y1= y(T) = y(0) + (2.30)with the initial values y0 and y1, the second-order diff

36、erence equation (2.28) can be solved using the MATLAB program in the course text.)0(yT 第22页/共34页24Consider the series RLC circuit shown in Fig. 2-3. As indicated, the input x(t) is the voltage applied to the circuit and the output y(t) is the voltage vC(t) across the capacitor. We have known that th

37、e differential equation for the circuit is given by)(1)(1)()(22txLCtvLCdttdvLRdttvdCCC(2.31) Fig. 2-3 Series RLC circuit第23页/共34页25Eq. (2.31) is a second-order differential equation that can be written in the form (2.26) with a1=R/L, a0=1/(LC), b1=0, b0=1/(LC) (2.32)Inserting (2.32) into the discret

38、ized equation (2.28) yields221 1222nxLCTnvLCTLRTnvLRTnvCCC(2.33) Eq. (2.33) is the difference equation approximation of the RLC circuit. The voltage vC(t) across the capacitor will be computed using the discretization (2.33) in the case when R=2, L=C=2, vC(0)=1, , and vC(t)=sin(t)u(t). 1)0(Cv 第24页/共

39、34页26To solve the difference equation (2.33) for n 2, the initial conditions are x0=sin(0)=0, x1= sin(T), vC0=1, and from (2.30), we getTvTvTvvCCCC1)0(0) )( 1 Now the second-order difference equation (2.33) can be solved using the MATLAB program. To compare with the exact solution vC(t)=0.5(3+t)etco

40、s(t)u(t) to the differential equation (2.31), the plots of the resulting output for the approximation are displayed in Fig. 2-4(a) for T=0.2 and Fig. 2-4(b) for T=0.1 along with the exact solution.第25页/共34页27From the plots it is seen that there is a significant error in the approximation in Fig. 2-4

41、(a) for T=0.2. To obtain a better approximation, the discretization interval T can be decreased to be 0.1, the result is shown in Fig. 2-4(b). In fact, as T0, the approximation should approach the true response values.02468-0.6-0.4-0.200.20.40.60.81Time(sec)vc(t)Approximation solution, T=0.2Exact So

42、lution02468-0.6-0.4-0.200.20.40.60.81Time(sec)vc(t)Approximation Solution, T=0.1Exact SolutionFig. 2-4(a)Fig. 2-4(b)第26页/共34页28Problems2.1 For the difference equation yn+ 1.5yn 1= xn, use the method of recursion to compute yn for n=0, 1, 2, 3, when xn=0 for all n and y1=2, and then find a complete s

43、olution for yn.2.2 Consider the following differential equations: (a) (b) Using Eulers approximation of derivatives with T arbitrary and input x(t) arbitrary, derive a difference equation model.)(3)(2)(txtydttdy)()(2)(3)(22txtydttdydttyd第27页/共34页29 If this process is continued, it is clear that the

44、next value of the output is a linear combination of the N past values of the output and M+1 values of the input. At each step of the computation, it is necessary to store only N past values of the output (plus, of course, the input values). This process is called an Nth-order recursion. Here the ter

45、m recursion refers to the property that the next value of the output is computed from N previous values of the output (plus the input values). The discrete-time system defined by (2.1) or (2.2) is sometimes called a recursive discrete-time system or a recursive discrete-time filter since its output

46、can be computed recursively. Here it is assumed that at least one of the coefficients ai in (2.1) is nonzero. If all the ai are zero, the input/output difference equation (2.1) reduces to 第28页/共34页30In this case, the output at any fixed time point depends only on values of the input xn, and thus the

47、 output is not computed recursively. Such systems are said to be nonrecursive. Finally, from (2.1) or (2.2) it is clear that the computation of the output response yn for n0 requires that the N initial conditions y1, y2, , yN must be satisfied. In addition, if the input xn is not zero for n0, the ev

48、aluation of (2.1) or (2.2) also requires the M initial input values x1, x2, , xM. Miiinxbny0第29页/共34页31Consider the discrete-time system given by the second-order input/output difference equation yn 1.5yn1 +yn2 2xn2 (2.3)Write (2.3) in the form (2.2) results in the input/output equation yn 1.5yn1 yn2 +2xn2 (2.4)Now suppose that

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论