02 Solutiondiscrete
02 Solutiondiscrete
Where,
n ---------> running variable (integer values)
N ----------> order of the system -------> number count for
advance operators
OR replacing n with n-N
OR
ex02iterativediscrete1.m and
y= y= y= y= y= y= y=
1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000
2.0000 2.0000 2.0000 2.0000 2.0000 2.0000 2.0000
1.7600 1.7600 1.7600 1.7600 1.7600 1.7600 1.7600
0 2.2800 2.2800 2.2800 2.2800 2.2800 2.2800
0 0 1.8576 1.8576 1.8576 1.8576 1.8576
0 0 0 0.3104 0.3104 0.3104 0.3104
0 0 0 0 -2.1354 -2.1354 -2.1354
0 0 0 0 0 -5.2099 -5.2099
0 0 0 0 0 0 -8.6974
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
To find the Zero Input Response of the DT system:
With x[n] = 0 , equation (1) becomes, Q(E) yo[n] = 0 -----> (2)
i.e. yo[n+N] + a1yo[n+N-1] +a2 yo[n+N-2] +…+ aN-1 yo[n+1]+aNy[n] = 0
OR (EN + a1EN-1 + a2EN-2 +….+ aN-1E + aN) yo[n] = 0
Eqn. (2) shows that a linear combination of yo[n] and its N successive
advance operators is zero, not at some value of n, but for all values
of time n, of the response.
Such result is possible if and only if yo[n] and all N successive
advance operations are of the same form. Otherwise their sum can
never be zero, for all values of n.
Exponential function γn , (where γ is constant) has this property.
i.e. Ek{ γn } = γn+k = γn γk
Hence the non trivial solution is of the form
yo[n]=C γn
Now, E yo[n] = C γ1γn;
E2 yo[n] = C γ2 γn; ….
EN yo[n] = C γN γn; all will have the same form.
Substituting these in equation (2),
C(γN +a1 γN-1+ a2 γN -2+….+aN-1 γ +aN) γn = 0 ------------------> (3)
A non trivial solution valid for all value of n is
γN +a1 γN-1+ a2 γN -2+….+aN-1 γ +aN = 0 ------> (4)
That is Q(γ) = 0; or (γ- γ1) (γ- γ2)…. (γ- γN) = 0,
Where γi i = 1,2,3…N are the roots of the polynomial Q(γ)
For each values of γ, equation (3) will be satisfied, so that, total
solution to equation (2) is
yo[n] = C1γ1n + C2 γ2n +…..CN γNn ------------> (5)
Here,
Q(γ) = γN +a1 γN-1+ a2 γN -2+….+aN-1 γ +aN = 0 is the characteristic
polynomial of the system
γ i i = 1,2,3…N are the characteristic roots of the system.
Also called Eigen values, characteristic values
γ1n , γ2n , … γNn are the characteristic modes of the system
solution to the equation is nothing but the linear combination of
these characteristic modes
Constants C1,C2,….CN can be evaluated by the N initial conditions
of the system.
Example
To find the Impulse Response of the DT system:
Consider the difference equation,
Q(E)y[n]=P(E)x[n]
The above equation can be solved iteratively also, with x[n] = δ[n]
Replacing, y[n] = h[n] ; and x[n] = δ[n] , and h[-1] = h[-2] = …= h[-N] = 0
i.e. h[0] = 5
i. e h[1] = 3 e.t.c.
That means the impulse response has characteristic modes valid for
n>0
We get,
𝐛
i.e. Ao = 𝐚𝐍
𝐍
Hence, Ao = 0
Eg. 2 : y[n+2] – 0.16 y[n+1] + 0.5y[n] = x[n+1] + 0.5x[n] OR
Hence Ao = 0.5
Example
𝒚[𝒏] = ∑∞
𝒎=−∞ 𝒙[𝒎]𝒉[𝒏 − 𝒎]
∑∞ ∞
𝒎=−∞ 𝒙[𝒎]𝜹[𝒏 − 𝒎] ----------> ∑𝒎=−∞ 𝒙[𝒎]𝒉[𝒏 − 𝒎]
= h[n] *x[n] = ∑∞
𝒎=−∞ 𝒉[𝒎]𝒙[𝒏 − 𝒎]
To get the ZSR, we have to convolve the arbitrary input signal x[n]
with the impulse response of the system h[n]. i.e. ys[n] = x[n] * h[n]
properties ?
width property : If x1[n] and x2[n] have finite widths of W1 and W2,
respectively, then the width of x1[n] * x2[n] is W1 + W2. { The width in
discrete time signal is one less than the number of its elements
(length).
Alternatively, If x1[n] and x2[n] have finite lengths of L1 and L2,
elements respectively, then the length of x1[n] * x2[n] is L1 + L2-1
elements.
Example
Total solution (response of the system) is the sum of ZIR and ZSR,
computed separately
Graphical convolution
Explain with MATLAB : ex02graphicalconvolutiondiscrete1.m
t = -4 No overlap between x(τ) and h(t- τ) : hence y(-4) = 0
E.T.C.
ex02graphicalconvolutiondiscrete2.m
3) K (a constant) β (a constant)
4) Cos(Ωn+θ) β Cos(Ωn+φ)
NOTE : In the classical method Zero Input and Zero State components
cannot be separated. Consequently, the initial conditions must be
applied to the total response, which begins at n= 0.
Example:
E β rn+1 = r rn ;
E2 βrn = r2 rn; …. ;
β Q(r) rn = P(r) rn OR
𝐏(𝐫))
β= = H(r) Hence,
𝐐(𝐫)
j
Hence, yf[n] = Re{ |H(ejΩ)| e jH ( e ) jn
}
= |H(ejΩ)| cos [Ωn+ H (e j ) ]
Hence, for generalised input, x[n] = cos(Ωn+θ) ,
yf[n] = |H(ejΩ)| cos [Ωn+ θ + H (e j ) ]
Example:
Following is the MATLAB code for iterative procedure:
for total solution (ZSR +ZIR)
n=[-2:10]';
y= [1;2;zeros(length(n)-2,1)];
for k=1:length(n)-2
end;
stem(n,y,'k')
For finding the zero input response, do not consider the feed forward
coefficients (terms corresponding to the coefficients of x[n] and its advance
operations), in the difference equation.
h= filter(b,a,delta(n)); stem(n,h,'k')
F
or the same above example,
y= filter(b,a,x(n)); stem(n,y,'k')
Filtic converts the traditional y[-1], y[-2],…y[-N] initial conditions for use
with the filter command
zi = filtic(b,a,[2 1]);
For the same above example, with same initial conditions, and with same
input,
b) (u[n+4]-u[n)* (u[n]-u[n-4)
>
> conv([1 1 1 1],[1 1 1 1])
>>h1 = inline('(-7*0.6.^n+8*0.4.^n).*(n>=0)','n');
>>ytc= conv(h1(n),x(n));
The results are correct over (0≤n≤30), the remaining values are clearly
incorrect; the output envelope should continue to grow, not decay.
Normally incorrect values are not displayed.