Skip to Content
Digital Signal and Image Processing Using MATLAB
book

Digital Signal and Image Processing Using MATLAB

by Gérard Blanchet, Maurice Charbit
May 2006
Intermediate to advanced
763 pages
16h 57m
English
Wiley
Content preview from Digital Signal and Image Processing Using MATLAB

Chapter 13

Hints and Solutions

H1   Signal fundamentals

H2   Discrete time signals and sampling

H2.1 (An illustration of the sampling theorem) (see page 63)

  1. Because Fs = 500 Hz is greater than twice the signal's frequency (that is, 2 × 200 Hz), the sampling makes it possible to perfectly reconstruct the signal. Hence we end up with the same sine at the 200 Hz frequency.
  2. Because Fs = 250 Hz is smaller than twice the signal's frequency, the sampling introduces aliasing. The ±Fs shifts in the spectrum (corresponding to n = ±1 in formula 2.5) contribute to the frequency with − 250 + 200 = 50 Hz. Since the spectrum is symmetrical, everything happens as if the 200 Hz frequency were “aliased” by symmetry about the frequency Fs/2 = 125 Hz. The result of the reconstruction is a sine with the frequency 50 Hz (Figure H2.1).
  3. Type:
    %===== CECHAN2.M Ds=.1;               % Signal length F0=200;              % Frequency of the sine function Fs=input('Sampling frequency in Hz (F0=200 Hz) = '); Ts=1/Fs; Ne=Ds/Ts+1; % Number of samples K=40;                % Interpolation fonction for displaying Tc=Ts/K; Nc=Ds/Tc+1; % Nb points of the "continuous" signal %================= tpc=[0:Nc-1]*Tc; xtc=cos(2*pi*tpc*F0); % "Continuous" signal tpe=[0:Ne-1]*Ts; xte=cos(2*pi*tpe*F0); % Samples subplot(211); plot(tpc,xtc,'-',tpe,xte,'o'); %===== Interpolation function ht=sin(pi*Fs*tpc) ./ tpc /Fs / pi; ht(1)=1; Ni=200;                       % Reconstruction filter hti=[ht(Ni:-1:2) ht(1:Ni)];   % (length 2*Ni-1) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Digital Signal Processing Using Matlab

Digital Signal Processing Using Matlab

André Quinquis

Publisher Resources

ISBN: 9781905209132Purchase book