已阅读5页,还剩35页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Chapter 2. Discrete-Time Signals and Systems,Gao Xinbo School of E.E., Xidian Univ. X ,Main Contents,Important types of signals and their operations Linear and shift-invariant system Easier to analyze and implement The convolution and difference equation representations Representations and implementation of signal and systems using MATLAB,Discrete-time signals,Analog and discrete signals analog signal t represents any physical quantity, time in sec. Discrete signal: discrete-time signal N is integer valued, represents discrete instances in times,Discrete-time signal,In Matlab, a finite-duration sequence representation requires two vectors, and each for x and n. Example: Question: whether or not an arbitrary infinite-duration sequence can be represented in MATLAB?,Types of sequences,Elementary sequence for analysis purposes 1. Unit sample sequence Representation in MATLAB,Function x,n=impseq(n0,n1,n2),A: n=n1:n2; x = zeros(1,n2-n1+1); x(n0-n1+1)=1; B: n=n1:n2; x = (n-n0)=0; stem(n,x,ro);,2. Unit step sequence,A: n=n1:n2; x=zeros(1,n2-n2+1); x(n0-n1+1:end)=1; B: n=n1:n2; x=(n-n0)=0;,3. Real-valued exponential sequence,For Example:,n=0:10; x=(0.9).n; stem(n,x,ro),4. Complex-valued exponential sequence,Attenuation: 衰减因子 frequency in radians: For Example: n=0:10; x=exp(2+3j)*n);,5. Sinusoidal sequence,Phase in radians For Example: n=0:10; x=3*cos(0.1*pi*n+pi/3)+2*sin(0.5*pi*n),6. Random sequence,Rand(1,N) Generate a length N random sequence whose elements are uniformly distributed between 0,1 Randn(1,N) Generate a length N Gaussian random sequence with mean 0 and variance 1. en 0,1,7. Periodic sequence,A sequence x(n) is periodic if x(n)=x(n+N) The smallest integer N is called the fundamental period For example A: xtilde=x,x,x,x B: xtilde=x*ones(1,P); xtilde=xtilde(:); xtilde=xtilde; transposition,Operations on sequence,1. Signal addition Sample-by-sample addition x1(n)+x2(n)=x1(n)+x2(n),Function y,n=sigadd(x1,n1,x2,n2) n=min(min(n1),min(n2): max(max(n1),max(n2); y1=zeros(1,length(n); y2=y1; y1(find(n=min(n1) ,2. Signal multiplication,Sample-by-sample multiplication Dot multiplication x1(n).x2(n)=x1(n) x2(n),Function y,n=sigmult(x1,n1,x2,n2) n=min(min(n1),min(n2) : max(max(n1),max(n2); y1=zeros(1,length(n); y2=y1; y1(find(n=min(n1) ,3. Scaling,ax(n)=ax(n),5. folding,y(n)=x(n-k) m=n-k; y=x;,4. Shifting,y(n)=x(-n) y=fliplr(x); n=-fliplr(n);,6. Sample summation ss = sum(x(n1:n2); 7. Sample production sp = prod(x(n1:n2);,8. Signal energy se = sum(x .* conj(x); or se = sum(abs(x) . 2); 9. Signal power,Examples,Ex020100 composite basic sequences Ex020200 operation on sequences Ex020300 complex sequence generation Ex020400 even-odd decomposition,Some useful results,Unit sample synthesis Any arbitrary sequence can be synthesized as a weighted sum of delayed and scaled unit sample sequence. Even and odd synthesis Even (symmetric): xe(-n)=xe(n) Odd (antisymmetric): xo(-n)=-xo(n) Any arbitrary real-valued sequence can be decomposed into its even and odd component: x (n)=xe(n)+ xo(n),Function xe, x0, m = evenodd(x,n) If any(imag(x) = 0) error(x is not a real sequence); End m = -fliplr(n); m1 = min(m,n); m2 = max(m,n); m=m1:m2; nm = n(1)-m(1); n1 = 1:length(n); x1 = zeros(1, length(m); x1(n1+nm) = x; x = x1; xe = 0.5 * (x + flipflr(x); xo = 0.5*(x - fliplr(x);,The geometric series,A one-side exponential sequence of the form an, n=0, where a is an arbitrary constant, is called a geometric series. Expression for the sum of any finite number of terms of the series,Correlations of sequences,It is a measure of the degree to which two sequences are similar. Given two real-valued sequences x(n) and y(n) of finite energy, Crosscorrelation Autocorrelation,The index l is called the shift or lag parameter.,The special case: y(n)=x(n),Discrete Systems,Mathematically, an operation T. y(n) = T x(n) x(n): excitation, input signal y(n): response, output signal Classification Linear systems Nonlinear systems,Linear operation L.,Iff L. satisfies the principle of superposition The output y(n) of a linear system to an arbitrary input x(n) is called impulse response, and is denoted by h(n,k),h(n,k): the time-varying impulse response,Linear time-invariant (LTI) system,A linear system in which an input-output pair is invariant to a shift n in time is called a linear times-invariant system y(n) = Lx(n) - y(n-k) = Lx(n-k) The output of a LTI system is call a linear convolution sum An LTI system is completely characterized in the time domain by the impulse response h(n).,Properties of the LTI system,Stability A system is said to be bounded-input bounded-output (BIBO) stable if every bounded input produces a bounded output. Condition: absolutely summable To avoid building harmful systems or to avoid burnout or saturation in system operation,Properties of the LTI system,Causality A system is said to be causal if the output at index n0 depends only on the input up to and including the index n0 The output does not depend on the future values of the input Condition: h(n) = 0, n 0 Such a sequence is termed a causal sequence. To make sure that systems can be built.,Convolution,Convolution can be evaluated in many different ways If the sequences are mathematical functions, then we can analytically evaluate x(n)*h(n) for all n to obtain a functional form of y(n) Graphical interpretation, folded-and-shifted version Matlab implementation Function y,ny=conv_m(x,nx,h,nh) nyb = nx(1)+nh(1); nye = nx(length(x)+nh(length(h); ny = nyb:nye; n = conv(x,h),Function form of convolution,Three different conditions under which u(n-k) can be evaluated: Case 1: n=9 % completely overlaps,Folded-and-shifted,Signals x=x(1),x(2),x(3),x(4),x(5) System Impulse Response: h=h(1),h(2)h(3),h(4) y=conv(x,h) y(1)=x(1)*h(1); y(2)=x(1)*h(2)+x(2)*h(1) y(3)=x(1)*h(3)+x(2)*h(2)+x(3)*h(1); x(1),x(2),x(3),x(4),x(5) h(4),h(3),h(2),h(1),Note that the resulting sequence y(n) has a longer length than both the x(n) and h(n) sequence.,Sequence correlations revisited,The correlation can be computed using the conv function if sequences are of finite duration. Example 2.8 The meaning of the crosscorrelation This approach can be used in applications like radar signal processing in identifying and localizing targets.,Difference Equation,An LTI discrete system can also be described by a linear constant coefficient difference equation of the form If aN = 0, then the difference equation is of order N It describes a recursive approach for computing the current output,given the input values and previously computed output values.,Solution of difference equation,y(n) = yH(n) + yP(n) Homogeneous part: yH(n) Particular part: yP(n) Analytical approach using Z-transform will be discussed in Chapter 4 Numerical solution with Matlab y = filter(b,a,x) Example 2.9,Zero-input and Zero-state response,In DSP the difference equation is generally solved forward in time from n=0. Therefore initial conditions on x(n) and y(n) are necessary to determine the output for n=0. Subject to the initial conditions:,Solution:,Zero-input and Zero-state response,yZI(n): zero-in
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年学校校级干部竞聘笔试试题及答案
- PET全真模拟试题(含答案)
- 2026年环境安全培训-危废仓库防污染措施审查员考试题库及答案
- 河道护坡格宾石笼及生态袋方案
- 遗体化妆师安全操作规程
- 2026学年西藏藏族自治区日喀则市三年级语文期末自我评估专项特训题附答案详细答案和解析
- 2026年机械员考试题及答案
- OEE设备综合效率培训测试题及详细答案
- 环卫户外高温作业防护规程
- 2026年机械维修技师职业资格知识考试题与答案
- 2026年校招:江苏规划设计集团试题及答案
- 2026年消防月专题培训(含近期火灾事故案例)
- 湖北武汉市2027届高中毕业生9月调研考试语文试卷(含解析)
- 2026秋新教材统编版九年级上册道德与法治期中素养测试卷(含答案)
- 2026年绍兴市柯桥区开发经营集团有限公司国企员工招聘9人笔试备考题库及答案详解
- 铝合金门窗施工方案范本
- AQT3034-2022《化工过程安全管理导则》核心要点解读
- DB 61T 5086-2023高效空调制冷机房设计标准
- 2025-2026学年四川省成都七中高一(上)期中物理试卷(含答案)
- 统招专升本英语4000词考前必背词汇表(含高频短语与记忆法)
- CRRT与体外二氧化碳清除技术联合方案
评论
0/150
提交评论