Digital Signal Processing Reference
In-Depth Information
c.
Extend the program to complete the following:
Generate the pole-zero plot of the system H ( z ).
Determine the poles and zeros of the system function H ( z ), and have
the program automatically generate the poles and zeros of the cor-
responding minimum-phase system H min ( z ).
Create the system model H min corresponding to the minimum-phase
system H min ( z ), and generate the pole-zero plot of the minimum-
phase system.
Create the system model H ap corresponding to the all-pass system
H ap ( z ), and generate the pole-zero plot of the all-pass system.
Generate the Bode plots (magnitude and phase) of the minimum-
phase system H min ( z ) and the all pass system H ap ( z ).
Exercise 5: Simulation of discrete-time LTI systems using MATLAB and
Simulink 2
Simulate the following discrete-time systems, shown in Figure 2.3(a) , Figure
2.3(b), and Figure 2.3(c) in both MATLAB (using time-domain) and Simulink
(using frequency or Z -domain). Please provide the program listing/block
diagrams and required output plots.
a.
In each case, obtain the output of the overall system, y ( n ), with an
input x ( n ) = u ( n ) - u ( n - 4).
b.
Plot the output, y ( n ), in the range - 10
n
10. Please label the plots
clearly.
Hint: In order to represent LTI systems in Simulink, use the discrete filter
block from the Simulink library. In this block, enter the coefficients of the
numerator and denominator polynomials of the LTI system function H ( z ).
Exercise 6: Image files and two-dimensional data matrices 3
A number of image files can be accessed from the MATLAB directory or
from the Internet. Download the image as a .jpg file into your local PC
directory using the following command:
>> y = imread ('filename.jpg'); loads the image into
the matrix y
and the commands:
>> imagesc(y); plots the image in a new window
>> colorbar; attaches a color scale to the figure
a.
Access any two-dimensional image file from the directory. Example:
coneplot.jpg, light_ex2.jpg, surface_ex2.jpg.
Search WWH ::




Custom Search