presentation title - mathworks · 5 why do signals need processing? convert the physical “real...

22
1 © 2014 The MathWorks, Presentation Title By Author

Upload: others

Post on 01-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

1 © 2014 The MathWorks, Inc.

Presentation Title

By Author

Page 2: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

2 © 2014 The MathWorks, Inc.

Practical Signal Processing Techniques

with MATLAB

实用信号处理技术

John Zhao (赵志宏)

Technical Marketing Manager

Page 3: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

3

Agenda

Signal Processing and Its Applications

Practical Signal Processing Examples

– Signal Generation

– Signal Measurement

– Signal Smoothing

– Signal Similarity

Signal Processing Workflow

Summary

Page 4: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

4

Signals are Everywhere

Page 5: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

5

Why Do Signals Need Processing?

Convert the physical “real world” to information

Eliminate noise, distortion, fading, echoes,

interference, etc.

Optimize resource utilization

Improve system performance

– Capacity and speed of mobile networks

– Range and accuracy of RADAR

Page 6: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

6

What is Signal Processing?

Mathematical algorithms that Extract information from data and the physical world

Enable communications and many other electronic systems

Fundamental concepts Analog-to-digital (A/D) and

Digital-to-analog (D/A) conversion

Spectral analysis

– Estimate frequency components in a signal

– Key buzzword: FFT (Fast Fourier Transform)

Filtering

– Enhance or remove specific elements of a signal

Sound Sensor Analog Signal

Spectral

Analysis

Digital

Signal

Information

Digital

Signal

A/D

Page 7: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

7

Example: Internet of Things (IoT)

Pump vibration

monitor

Send/store

vibration data

Live information

on mobile app

Source: iAquaLink by Zodiac

Analysis of

pump failure

data

95% of pumps

fail soon after the

vibration reading

climbs above

1.35

Please contact

technical support –

your pump is likely

to fail soon

Page 8: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

8

What’s in Signal Processing Toolbox?

Signal generation, visualization and measurement

Signal transforms

Digital filter design, analysis, and implementation

Statistical signal measurements and data windowing

functions

Power Spectral Density estimation algorithms

Page 9: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

9

Periodic (Square, Sawtooth)

Aperiodic (Chirp)

Specialty Functions

– Pulstran function

– Sinc function

Example: Generate commonly used waveforms

Page 10: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

10

Signal Identification

What is the signal telling you?

How do I tell signal apart from noise?

Are there similarities between these signals?

Is this signal periodical?

Page 11: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

11

Example : Measure Sunspot Activity

Sunspots are temporary phenomenon that appear as

dark spots

Two methods to determine the cycle of the sunspot

activity

– Time Series Analysis

– Frequency Analysis

Page 12: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

12

Example: Align Signals With Different Start

Time

Page 13: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

13

Measurement Functions

Signal Statistics

– Min/Max, Mean, Median, RMS

– PeakToPeak, PeakToRMS

Pulse Measurements

– State Levels

– Rise/Fall Time, Overshoot/Undershoot, Settling Time

– Pulse Width/Period/Frequency, Duty Cycle

Channel power

– Bandpower, ENBW

Distortion Measurements

– SFDR, SINAD, SNR*, THD, TOI

-0.5 0 0.5 1 1.5 2 2.50

10

20

30

40Histogram of signal levels (100 bins)

Level (Volts)

Count

0 10 20 30 40 50 60 70 80 90 100-1

0

1

2

3Signal

Samples

Level (V

olts)

0 2 4 6 8

x 10-6

-1

0

1

2

3

4

5

6

Time (seconds)

Level (V

olts)

pulse width

signal

mid cross

upper boundary

upper state

lower boundary

mid reference

upper boundary

lower state

lower boundary

Page 14: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

14

Examples: Clock Signal Measurement

State levels

Pulse period

Pulse duty ratio

Overshoot and undershoot

RMS

Page 15: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

15

Signal Smoothing

Why smoothing?

– Better visual and graphics

– Removing interference information

Types of smoothing

– Removing trend from a signal

– Remove spikes

– Removing noises

– Recovering missing samples

Page 16: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

16

Filter Design in Signal Processing Toolbox

Filter Types

– lowpass, highpass, bandpass, bandstop, Hilbert, differentiator,

pulse-shaping, and arbitrary magnitude

Design Methods

– FIR: Parks-McClellan and Kaiser window

– IIR: Butterworth, Chebyshev Type I and Type II, and elliptic

Analyses

– Magnitude response, phase response, and group delay

– Impulse response and step response

– Pole-zero plot

Page 17: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

17

Example: Analyze and Filter an EKG signal

Load EKG Signal

De-trend the EKG signal

Low Pass Filtering

Delay Compensation

Visualize

Signal Processing

Algorithms

Page 18: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

18

Example: Removing Spikes

Page 19: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

19

Example: Recovering Missing Sample

Page 20: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

20

What We have Seen …

De-trending an EKG signal

Visualize in power content of signal

Design and apply a lowpass IIR filter

Compensate the delay introduced by the filter

Removing spikes from a signal

Recover missing data in a signal

Page 21: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

21

Reporting and

Documentation

Outputs for Design

Deployment

Share

Files

Software

Instruments/Devices

Access

Code & Applications

Explore & Discover

Signal Analysis

& Visualization

Algorithm

Development

Application

Development

Automate

Signal Processing Workflow

Page 22: Presentation Title - MathWorks · 5 Why Do Signals Need Processing? Convert the physical “real world” to information Eliminate noise, distortion, fading, echoes, interference,

22

Summary

With MATLAB and Signal Processing Toolbox, you can

perform

– Signal Generation ,Visualization and Measurement

– Signal transforms

– Analog and Digital filter design, analysis, and

implementation

– Statistical signal measurements and data windowing

functions

– Power Spectral Density estimation algorithms