Code covered by the BSD License  

Highlights from
MatLab Solutions: "Introduction to Digital Signal Processing: A Computer Laboratory Textbook".

image thumbnail

MatLab Solutions: "Introduction to Digital Signal Processing: A Computer Laboratory Textbook".

by

 

29 Oct 2012 (Updated )

These files are the MatLab solutions of exercises contained in the above DSP lab textbook.

ex513.m
% Exercise 5.1.3. Producing Pole/Zero Plots.
clc; clear; close all;

%% Step (a).
b = [1  3  3  1];  % Numerator Coefficients.
a = [1 .5 .3 .1];  % Denominator Coefficients.

% Produce and display the Poles/Zeros plot.
figure('Name','Exercise 5.1.3. Producing Pole/Zero Plots'); 
zplane(b,a);
grid on;

% Produce and display the frequency response.
figure('Name','Exercise 5.1.3. Producing Pole/Zero Plots'); 
freqz(b,a);
% or better: 
% fvtool(b,a);

%% Step (b).
% Find the numerical values of poles and zeros
[z p k] = tf2zpk(b,a)

Contact us