Presentation Title€¦ · 5 Why Do Signals Need Processing? Convert the physical “real world”...

Post on 28-Jul-2020

0 views 0 download

Transcript of Presentation Title€¦ · 5 Why Do Signals Need Processing? Convert the physical “real world”...

1 © 2014 The MathWorks, Inc.

Presentation Title

By Author

2 © 2014 The MathWorks, Inc.

Practical Signal Processing Techniques

with MATLAB

实用信号处理技术

John Zhao (赵志宏)

Technical Marketing Manager

3

Agenda

Signal Processing and Its Applications

Practical Signal Processing Examples

– Signal Generation

– Signal Measurement

– Signal Smoothing

– Signal Similarity

Signal Processing Workflow

Summary

4

Signals are Everywhere

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

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

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

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

9

Periodic (Square, Sawtooth)

Aperiodic (Chirp)

Specialty Functions

– Pulstran function

– Sinc function

Example: Generate commonly used waveforms

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?

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

12

Example: Align Signals With Different Start

Time

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

14

Examples: Clock Signal Measurement

State levels

Pulse period

Pulse duty ratio

Overshoot and undershoot

RMS

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

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

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

18

Example: Removing Spikes

19

Example: Recovering Missing Sample

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

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

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