fourier representation of signals
play

Fourier representation of signals M ATLAB tutorial series (Part 1.1) - PowerPoint PPT Presentation

Fourier representation of signals M ATLAB tutorial series (Part 1.1) Pouyan Ebrahimbabaie Laboratory for Signal and Image Exploitation (INTELSIG) Dept. of Electrical Engineering and Computer Science University of Lige Lige, Belgium Applied


  1. Fourier representation of signals M ATLAB tutorial series (Part 1.1) Pouyan Ebrahimbabaie Laboratory for Signal and Image Exploitation (INTELSIG) Dept. of Electrical Engineering and Computer Science University of Liège Liège, Belgium Applied digital signal processing (ELEN0071-1) 19 February 2020

  2. Contacts • Email: P.Ebrahimbabaie@ulg.ac.be • Office: R81a • Tel: +32 (0) 436 66 37 53 • Web: http://www.montefiore.ulg.ac.be/~ebrahimbab aie/ 2

  3. Fourier analysis is like a glass prism Glass prism Violet Blue Green Yellow Orange Red Beam of sunlight Analysis

  4. Fourier analysis is like a glass prism Glass prism Violet Blue Green Yellow Orange Red Beam of sunlight Analysis White light Beam of Synthesis sunlight 4

  5. Fourier analysis in signal processing • Fourier analysis is the decomposition of a signal into frequency components, that is, complex exponentials or sinusoidal signals. Original signal

  6. Fourier analysis in signal processing • Fourier analysis is the decomposition of a signal into frequency components, that is, complex exponentials or sinusoidal signals. Original signal = Sinusoidal signals Joseph Fourier 1768-1830

  7. Motivation Question: what is our motivation to describe each signal as a sum or integral of sinusoidal signals?

  8. Motivation Question: what is our motivation to describe each signal as a sum or integral of sinusoidal signals? Answer: the major justification is that LTI systems have a simple behavior with sinusoidal inputs. Notice: the response of a LTI system to a sinusoidal is sinusoid with the same frequency but different amplitude and phase.

  9. Motivation Question: what is our motivation to describe each signal as a sum or integral of sinusoidal signals? Answer: the major justification is that LTI systems have a simple behavior with sinusoidal inputs. Interesting application: we can remove selectively a desired frequency 𝛁 𝒋 from the original signal using an LTI system (i.e. “Filter” ) by setting 𝑰 𝒇 𝒌𝛁 𝒋 = 𝟏 .

  10. Notations and abbreviations Mathematical tools for frequency analysis depends on, • Nature of time: continuous or discrete • Existence of harmonic: periodic or aperiodic

  11. Notations and abbreviations Mathematical tools for frequency analysis depends on, • Nature of time: continuous or discrete • Existence of harmonic: periodic or aperiodic The signal could be, Continuous-time and periodic Continuous-time and aperiodic Discrete-time and periodic Discrete-time and aperiodic

  12. Notations and abbreviations Mathematical tools for frequency analysis depends on, • Nature of time: continuous or discrete • Existence of harmonic: periodic or aperiodic The signal could be, Continuous-time and periodic (freq. dom. CTFS) Continuous-time and aperiodic (freq. dom. CTFT) Discrete-time and periodic (freq. dom. DTFS) Discrete-time and aperiodic (freq. dom. DTFT)

  13. Notations and abbreviations Mathematical tools for frequency analysis depends on, • Nature of time: continuous or discrete • Existence of harmonic: periodic or aperiodic The signal could be, Continuous-time and periodic (freq. dom. CTFS) Continuous-time and aperiodic (freq. dom. CTFT) Discrete-time and periodic (freq. dom. DTFS) Discrete-time and aperiodic (freq. dom. DTFT) Notice: when the signal is periodic, we talk about Fourier series (FS).

  14. Notations and abbreviations Mathematical tools for frequency analysis depends on, • Nature of time: continuous or discrete • Existence of harmonic: periodic or aperiodic The signal could be, Continuous-time and periodic (freq. dom. CTFS) Continuous-time and aperiodic (freq. dom. CTFT) Discrete-time and periodic (freq. dom. DTFS) Discrete-time and aperiodic (freq. dom. DTFT) Notice: when the signal is aperiodic, we talk about Fourier transform (FT).

  15. Continuous-time periodic signal: CTFS Continuous - time signals Time-domain Frequency-domain c k x ( t ) - T 0 T W t 0 0 0 2 p W 0 = T 0 Discrete and aperiodic Continuous and periodic

  16. Continuous-time periodic signal: CTFS Continuous - time signals Time-domain Frequency-domain c k x ( t ) - T 0 T W t 0 0 0 2 p W 0 = T 0 Discrete and aperiodic Continuous and periodic

  17. From CTFS to CTFT Example: consider the following signal,

  18. From CTFS to CTFT Example: consider the following signal,

  19. From CTFS to CTFT

  20. From CTFS to CTFT

  21. From CTFS to CTFT

  22. From CTFS to CTFT

  23. Continuous-time aperiodic signal: CTFT

  24. Continuous-time aperiodic signal: CTFT

  25. Continuous-time aperiodic signal: CTFT

  26. Discrete-time periodic signal: DTFS Discrete -time signals Time-domain Frequency-domain x [ n ] c k - N - N N N n k 0 0 Discrete and periodic Discrete and periodic

  27. Discrete-time periodic signal: DTFS Discrete -time signals Time-domain Frequency-domain x [ n ] c k - N - N N N n k 0 0 Discrete and periodic Discrete and periodic

  28. Discrete-time aperiodic signal: DTFT D iscrete-tim e signals Tim e-dom ain Frequency-dom ain X (e j w ) x [ n ] - p p w - 2 p 2 p - 4 - 2 n 0 2 4 0 Discrete and aperiodic Continous and periodic

  29. Discrete-time aperiodic signal: DTFT D iscrete-tim e signals Tim e-dom ain Frequency-dom ain X (e j w ) x [ n ] - p p w - 2 p 2 p - 4 - 2 n 0 2 4 0 Discrete and aperiodic Continous and periodic

  30. Discrete-time aperiodic signal: DTFT D iscrete-tim e signals Tim e-dom ain Frequency-dom ain X (e j w ) x [ n ] - p p w - 2 p 2 p - 4 - 2 n 0 2 4 0 Discrete and aperiodic Continous and periodic Everything you need to know !

  31. Summary of Fourier series and transforms 31

  32. Periodicity with “period” 𝜷 in one domain implies discretization with “spacing” 𝟐 ⁄ 𝜷 in the other domain, and vice versa. 32

  33. Frequency : F (Hz)

  34. Angular frequency: 𝛁 = 𝟑𝝆𝑮 (rad/sec)

  35. Normalized frequency: f = 𝑮/𝑮 𝒕 (cycles/samples)

  36. Normalized angular frequency: 𝝏 = 𝟑𝝆 × 𝑮/𝑮 𝒕 (radians x cycles/samples) radians

  37. Normalized angular frequency: 𝝏 = 𝟑𝝆 × 𝑮/𝑮 𝒕 (radians x cycles/samples) radians High Freq. Low Freq. High Freq.

  38. Numerical computation of DTFS Let 𝒚 𝒐 be periodic and 𝒚 = 𝒚 𝟏 𝒚 𝟐 , ⋯ , 𝒚 𝑶 − 𝟐 includes first 𝑶 sampls. Formula M ATLAB function

  39. Example 1.1: use of fft and ifft Example 1: Compute the DFTS of pulse train with 𝑴 =2 and 𝑶 = 𝟐𝟏. % signal x=[1 1 1 0 0 0 0 0 1 1] % N N=length(x); % ck c=fft(x)/N x1=ifft(c)*N % plot x1 stem(x1) title('ifft(c)*N')

  40. Numerical computation of DTFT The computation of a finite length sequence 𝒚[𝒐] that is nonzero between 0 and 𝑶 − 𝟐 at frequency 𝝏 𝒍 is given by, Formula M ATLAB function X=freqz(x,1,om) % DTFT

  41. Example 1.2: use of freqz Example 1.2: plot magnitude and phase spectrum of the following signal 1 𝒚[𝒐] x [ n ] 0.5 0 – 10 – 5 0 5 10 15 20 n 𝒐 (a)

  42. Example 1.2: use of freqz % signal x=[1 1 1 1 1 1 1 1 1 1 1]; % define omega om=linspace(-pi,pi,500); % Compute DTFT X=freqz(x,1,om); % |X| X1=abs(X); % plot magnitude spectrum figure(1) plot(om,X1,'LineWidth',2.5) xlabel('Normalized angular frequency') ylabel('Magnitude |X|')

  43. Example 1.2: use of freqz % signal x=[1 1 1 1 1 1 1 1 1 1 1]; % define omega om=linspace(-pi,pi,500); % Compute DTFT X=freqz(x,1,om); % |X| X1=abs(X); % plot magnitude spectrum figure(1) plot(om,X1,'LineWidth',2.5) xlabel('Normalized angular frequency') ylabel('Magnitude |X|')

  44. Example 1.2: use of freqz % signal x=[1 1 1 1 1 1 1 1 1 1 1]; % define omega om=linspace(-pi,pi,500); % Compute DTFT X=freqz(x,1,om); % |X| X1=abs(X); % plot magnitude spectrum figure(1) plot(om,X1,'LineWidth',2.5) xlabel('Normalized angular frequency') ylabel('Magnitude |X|')

  45. Example 1.2: use of freqz % signal x=[1 1 1 1 1 1 1 1 1 1 1]; % define omega om=linspace(-pi,pi,500); % Compute DTFT X=freqz(x,1,om); % |X| X1=abs(X); % plot magnitude spectrum figure(1) plot(om,X1,'LineWidth',2.5) xlabel('Normalized angular frequency') ylabel('Magnitude |X|')

  46. Example 1.2: use of freqz % signal x=[1 1 1 1 1 1 1 1 1 1 1]; % define omega om=linspace(-pi,pi,500); % Compute DTFT X=freqz(x,1,om); % |X| X1=abs(X); % plot magnitude spectrum figure(1) plot(om,X1,'LineWidth',2.5) xlabel('Normalized angular frequency') ylabel('Magnitude |X|')

  47. Example 1.2: use of freqz % signal x=[1 1 1 1 1 1 1 1 1 1 1]; % define omega om=linspace(-pi,pi,500); % Compute DTFT X=freqz(x,1,om); % phase p=angle(X); % plot phase spectrum figure(2) plot(om,p,'LineWidth',2.5) xlabel('Normalized angular frequency') ylabel( ‘Phase' )

  48. Example 1.3: use of freqz Example 1.2: plot magnitude and phase spectrum of 𝒚 𝒐 = 𝟏. 𝟕 × 𝐭𝐣𝐨𝐝 (𝟏. 𝟕𝒐) for 𝒐 = −𝟑𝟏𝟏: 𝟐: 𝟑𝟏𝟏.

  49. Example 1.3: use of freqz % time t or n t=-200:1:200; % signal x=0.6*sinc(0.6.*t); % plots signal figure(1) plot(t,x,'LineWidth',2.5) title('x') % define omega om=linspace(-pi,pi,500); % compute DTFT X=freqz(x,1,om); % plot magnitude spectrum figure(2) plot(om,abs(X),'LineWidth',2.5)

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend