mae143a signals & systems 2013 winter 1 mae143a signals & systems...

19
MAE143A Signals & Systems http://oodgeroo.ucsd.edu/~bob/signals Tu, Th 8:00-9:20 Pepper Canyon 106 Mo 8:00-8:50 Peterson 110 Professor Bob Bitmead [email protected] Jacobs 1609, 858-822-3477 TAs: Yelena Menyaylenko [email protected] Jacob Huffman [email protected] MAE143A Signals & Systems 2013 Winter 1 Classes, breaks, homeworks, midterms, final Week Monday Tuesday Thursday 1 Jan 7 No work Jan 8 Jan 10 2 Jan 14 Jan 15 H1 Jan 17 3 Jan 21 MLKJ Jan 22 H2 Jan 24 4 Jan 28 Jan 29 H3,M1 Jan 31 5 Feb 4 Feb 5 H4 Feb 7 6 Feb 11 Feb 12 H5 Feb 14 7 Feb 18 Pres Day Feb 19 H6 Feb 21 M2 8 Feb 25 Feb 26 H7 Feb 28 9 Mar 4 Mar 5 H8 Mar 7 10 Mar 11 Mar 12 H9 Mar14 Final Mar 21 8-11am MAE143A Signals & Systems … ?!?!? What is this class about? Signals – real-valued scalar functions of time x(t) Often represents a physical quantity over time Voltage, current, pressure, speed, heart rate Could also represent economic quantities over time Employment, value, account balance Could even represent psychological quantities Opinions, approval ratings, confidence, satisfaction Systems – devices, processes, algorithms which operate on an input signal x(t) to produce and output signal y(t) A system with memory is called a dynamic system MAE143A Signals & Systems 2013 Winter 2

Upload: duongmien

Post on 19-Aug-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

MAE143A Signals & Systems http://oodgeroo.ucsd.edu/~bob/signals

Tu, Th 8:00-9:20 Pepper Canyon 106 Mo 8:00-8:50 Peterson 110

Professor Bob Bitmead [email protected] Jacobs 1609, 858-822-3477 TAs: Yelena Menyaylenko [email protected] Jacob Huffman [email protected]

MAE143A Signals & Systems 2013 Winter 1

Classes, breaks, homeworks, midterms, final

Week Monday Tuesday Thursday 1 Jan 7 No work Jan 8 Jan 10 2 Jan 14 Jan 15 H1 Jan 17 3 Jan 21 MLKJ Jan 22 H2 Jan 24 4 Jan 28 Jan 29 H3,M1 Jan 31 5 Feb 4 Feb 5 H4 Feb 7 6 Feb 11 Feb 12 H5 Feb 14 7 Feb 18 Pres Day Feb 19 H6 Feb 21 M2 8 Feb 25 Feb 26 H7 Feb 28 9 Mar 4 Mar 5 H8 Mar 7 10 Mar 11 Mar 12 H9 Mar14

Final Mar 21 8-11am

MAE143A Signals & Systems … ?!?!? What is this class about?

Signals – real-valued scalar functions of time x(t) Often represents a physical quantity over time

Voltage, current, pressure, speed, heart rate Could also represent economic quantities over time

Employment, value, account balance Could even represent psychological quantities

Opinions, approval ratings, confidence, satisfaction Systems – devices, processes, algorithms which operate on an input signal x(t) to produce and output signal y(t)

A system with memory is called a dynamic system

MAE143A Signals & Systems 2013 Winter 2

Page 2: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Signals & systems t belongs to a real interval (possibly infinite), , then

Signals x(t), y(t) are continuous-time signals System linking the two is a continuous-time system

t belongs to the natural numbers, , then Signals x(t), y(t) are discrete-time signals

Time t counts the number of sampling times, ! System linking the two is a discrete-time system

Continuous-time dynamic systems often described by differential equations

Discrete-time dynamic systems often described by difference equations

Memory is captured by the initial conditions

MAE143A Signals & Systems 2013 Winter 3

t ! [a,b]

t ! "

Text Book: Luis F. Chaparro, Signals & Systems using MATLAB, Academic Press, 2011

Other related texts are fine too Some homework will refer to this exact book Web site: http://booksite.academicpress.com/chaparro/ We will stick to the book except for its close treatment of communications and control A helpful and cheap book might be the Schaum Outline Signals and Systems by Hwei Hsu, 2011 Lots of worked problems

MAE143A Signals & Systems 2013 Winter 4

Page 3: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Signals & Systems – (rough) planned schedule

Continuous signals and their properties 1 week Continuity, boundedness, periodicity, …

Continuous systems and their properties 3 weeks Linearity, causality, time-invariance, stability, state

Continuous signals and systems analysis 2 weeks Convolution, Fourier and Laplace transforms

Sampling & discrete time signals and systems 2 weeks Sampling, reconstruction, discrete Fourier transform (DFT)

Random signals "2 weeks Expectation, correlation, prediction, spectrum

MAE143A Signals & Systems 2013 Winter 5

Chapters 0,1 2, 6 3, 4, 5 7 -10

Prerequisites – what we assume you know Math 20D – Introduction to differential equations

ODEs, solutions, Laplace transforms, complex numbers Math 20E – Vector calculus

Green’s theorem, Taylor series Math 20F – Linear algebra

Matrices and vectors, bases, eigenvalues and eigenvectors MAE105 – Introduction to mathematical physics

Fourier series, integral transforms

MAE143A Signals & Systems 2013 Winter 6

Page 4: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Office Hours and other assistance

Bob Bitmead TBA

Yelena Menyaylenko TBA Jacob Huffman TBA

or by appointment

MAE143A Signals & Systems 2013 Winter 7

Homework, midterm and exam

Homework will be set weekly except and due in class on Tuesdays The midterms will take place in class Tuesday, January 29 and Thursday February 21

sixty minutes each The final will take place Thursday, March 21

Bitmead class 08:00-11:00am probably in the class room Peterson 108

MAE143A Signals & Systems 2013 Winter 8

Page 5: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Grading … and passing with flying colors

Final score is the maximum of the following two numbers 1.00 x Final % 0.5 x Final % + 0.3 x Midterm % + 0.2 x Homework % [Secret: the two numbers are almost always the same]

To succeed: avail yourself of all the help including other

books, past students, friends, the web do the homework and matlab yourself seek assistance early and as necessary

MAE143A Signals & Systems 2013 Winter 9

A speech signal

MAE143A Signals & Systems 2013 Winter 10

0 1 2 3 4 5 6x 104

−0.4

−0.3

−0.2

−0.1

0

0.1

0.2

0.3Voice recording

time (s)

sam

ple

valu

e (u

nits

)

Now is the time for all good men to come to the aid of their country

Page 6: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Speech signal

Seven seconds of speech sampled at 22050 Hertz digitized at 16 bits A discrete-time signal representing samples from a continuous-time voltage signal which, in turn, is the output from a piezoelectric transducer of air pressure (a microphone) Because we have fairly rapid sampling we can consider (for the moment) this a continuous-time signal We will return to this later

MAE143A Signals & Systems 2013 Winter 11

0 1 2 3 4 5 6x 104

−0.4

−0.3

−0.2

−0.1

0

0.1

0.2

0.3Voice recording

time (s)

samp

le va

lue (u

nits)

Speech Signal zoomed MAE143A Signals & Systems 2013 Winter 12

0.7 0.8 0.9 1 1.1 1.2

−0.25

−0.2

−0.15

−0.1

−0.05

0

0.05

0.1

0.15

0.2

0.25

’Now is’ spoken

Time (s)

spee

ch s

ampl

e (u

nits

)

N ow i s

Growing amplitudes Decaying amplitudes Low power High power Periodic high frequency low frequency Noisy/unpredictable

Page 7: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Speech signal

Clearly the signal is segmented (over time) into phonemes Some parts have high amplitude and therefore power

Voiced speech - most of this piece is voiced Vocal cords vibrating Strong periodic behavior Very predictable sample-to-sample

Unvoiced speech (mostly just the ‘s’ sound) Vocal cords not vibrating Mouth, lips and tongue affect the moving air Noisy looking Not predictable sample-to-sample

We see different rates of attack and decay Can you identify the Australian accent?

MAE143A Signals & Systems 2013 Winter 13

Familiar signals – the constant signal

The constant signal constant over all time

The Laplace transform of this constant signal is Note that the Laplace transform ignores the t<0 part

MAE143A Signals & Systems 2013 Winter 14

x(t) = c, t ! ("#,#)

Lx(s) =

� ∞

0−x(t)e−st dt =

0.7

−se−st

����∞

0−=

0.7

s

Page 8: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Familiar signals – the step function

The unit step function or Heaviside function The Laplace transform of the unit step This is the same as for a constant function of value 1 because they are identical for t #0 This function is discontinuous at t=0

MAE143A Signals & Systems 2013 Winter 15

1(t) =

�0, t < 0

1, t ≥ 0

L1(s) =

� ∞

0−1(t)e−st dt =

1

s

Continuous approximation to a unit step

Here are some approximations to 1(t) which are continuous Here erf(x) is the error function The red curve is k=10 The black curve is k=20

MAE143A Signals & Systems 2013 Winter 16

1̂k(t) =1

2+

1

2erf(kt)

erf(x) =2√π

� x

−∞exp(−z2) dz

Page 9: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Familiar signals – the ramp function

Ramp function

This function is unbounded but it is continuous Laplace transform Notice that the ramp function is the integral of the step

MAE143A Signals & Systems 2013 Winter 17

r(t) =

�0, t < 0

t, t ≥ 0

Lr(s) =

� ∞

0−r(t)e−st dt =

� ∞

0−te−st dt =

1

s2

r(t) =

� t

−∞1(z) dz

Familiar signals – the impulse function The impulse function or Dirac delta function The impulse function is neither continuous nor bounded

Laplace transform

The step is the integral of the impulse

MAE143A Signals & Systems 2013 Winter 18

δ(t) = 0, for t �= 0� �−� δ(t) dt = 1, for � > 0

Lδ(s) =

� ∞

0−δ(t)e−st dt =

� 0+

0−δ(t) dt = 1

1(t) =

� t

−∞δ(z) dz

Page 10: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Bounded continuous approximation of the impulse Continuous and bounded approximations of $(t) red is black is

The impulse function has a sampling property

for any function f(t) continuous at t=0

MAE143A Signals & Systems 2013 Winter 19

δ̂k(t) = ksin kt

t

17.5× δ̂40(t) = 700sin 40t

t

25× δ̂20(t) = 500sin 20t

t

� b

af(z)δ(z) dz = f(0) if 0 ∈ (a, b)

Familiar signals – real exponentials

Red Blue Black

Laplace Red Blue Black

Laplace

MAE143A Signals & Systems 2013 Winter 20

e0.5t

et

e2t

e−2te−te−0.5t

All of these signals are unbounded

1

s− 0.5,

1

s− 1,

1

s− 2

1

s+ 0.5,

1

s+ 1,

1

s+ 2

Page 11: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Familiar signals – one-sided real exponentials Red Blue Black

Laplace

poles -0.5, -1, -2 Red Blue Black

Laplace

poles (0,0.5), (0,1), (0,2)

MAE143A Signals & Systems 2013 Winter 21

e−0.5t1(t)e−t1(t)

e−2t1(t)

1

s− 0.5− 1

s,

1

s− 1− 1

s,

1

s− 2− 1

s

�e0.5t − 1

�1(t)�

et − 1�1(t)�

e2t − 1�1(t)

1

s+ 0.5

1

s+ 1

1

s+ 2

Familiar signals - sinusoids

Red Blue Black Red Black

MAE143A Signals & Systems 2013 Winter 22

sin(5t)

sin(3t)

sin(7t)

cos(5t)

sin(5t)

Page 12: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

One-sided sinusoids Sinusoids Laplace transforms Poles ±j10, ±j15, ±j20 Sinusoid and cosinusoid Laplace transforms Poles ±j10

MAE143A Signals & Systems 2013 Winter 23

sin(10t)1(t) sin(15t)1(t) sin(20t)1(t)

10

s2 + 100

15

s2 + 225

20

s2 + 400

sin(10t)1(t) cos(10t)1(t)

10

s2 + 100

s

s2 + 100

Complex exponentials

Blue Red Laplace transforms Poles -2±j20, -2 The (upper) red curve is called the envelope of the blue curve

MAE143A Signals & Systems 2013 Winter 24

e−2t sin(20t)1(t)

20

(s+ 2)2 + 202=

20

s2 + 4s+ 4041

s+ 2

±e−2t1(t)

Page 13: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

More complex exponentials

Blue Red

Laplace transform

Poles 2±j20, 2 in the right half of the complex plane

that is, the real part is positive These signals are unbounded

MAE143A Signals & Systems 2013 Winter 25

e2t sin(20t)1(t)e2t1(t)

20

(s− 2)2 + 202=

20

s2 − 4s+ 404

1

s− 2

Periodic signals

Periodic signals repeat The minimal cycle time T is called the period Here it is one second For a periodic signal we only need to specify it over one period and we know it everywhere Sinusoids, cosinusoids and constants are periodic One-sided variants are not, k above can be negative

MAE143A Signals & Systems 2013 Winter 26

x(t+ kT ) = x(t) for k ∈ Z

Page 14: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Even and odd signals

Even signals such as cos(t)

Odd signals

such as sin(t)

MAE143A Signals & Systems 2013 Winter 27

x(−t) = x(t)

x(−t) = −x(t)

x(t) = xeven(t) + xodd(t)

xeven(t) =1

2[x(t) + x(−t)]

xodd(t)1

2[x(t)− x(−t)]

Real world industrial signals

Macknade bulk sugar dryer, Queensland Australia 11m-long rotating drum evaporative cooling and drying

Hot wet sugar in the top (left), cool dry air in the bottom (right) Hot moist air out the top, cool dry sugar out the bottom

MAE143A Signals & Systems 2013 Winter 28

Sugar InSugarOutAir OutAir In

Page 15: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Macknade rotary bulk sugar dryer - experiments

MAE143A Signals & Systems 2013 Winter 29

Input sugar temperature signal

MAE143A Signals & Systems 2013 Winter 30

Page 16: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Input air temperature signal

MAE143A Signals & Systems 2013 Winter 31

Input air humidity signal

MAE143A Signals & Systems 2013 Winter 32

Page 17: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Output sugar temperature signal

MAE143A Signals & Systems 2013 Winter 33

A quantized signal

Macknade sugar dryer is a 3-input 1-output system

MAE143A Signals & Systems 2013 Winter 34

Page 18: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Mathematical model of the sugar dryer system

This is a set of nonlinear difference equations in (state) variables Ei, Ms

i, Mai, Mm

i, Mvi,Ta

i, Tsi

The blue quantities are parameters of the model

MAE143A Signals & Systems 2013 Winter 35

s a v

M i s ( k !") ="M i

s ([ k -"1 ] !") -"Ei ( k !"), M i a ( k !") ="M i

a ([ k -"1 ] !") +"E i ( k !")

T i a ( k !") ="T i

a ([ k -"1 ] !") +"hA !"+"C pv E i ( k !") [" ]"T i

s ([ k -"1 ] !") -"T i a ([ k -"1 ] !") [" ]"

C pa M i a ( k !") +"C pv M i

v ( k !")

T i s ( k !") ="T i

s ([ k -"1 ] !") -"L H 2 O E i ( k !") +"hA !" T i

s ([ k -"1 ] !") -"T i a ([ k -"1 ] !") [" ]"

C ps M i s ( k !") +"C pw M i

w ( k !")

M i m ( k !") ="[ 1 -"#"] M i

m ( k !") +"#"M i -"1 m ( k !"), M i

v ( k !") ="M i +"1 v ( k !")

E i ( k !") ="mA !"( P sugar ([ k -"1 ] !", T i ) -" P air ([ k -"1 ] !", M i , M i ))

Properties of signals

Domain – region of times under consideration Continuous-time, discrete-time, finite time interval …

Support – region of time over which they are nonzero One-sided functions, impulses, limited extent

Amplitude – maximal magnitude Boundedness, norm, energy

Smoothness – degree of continuity, differentiability, etc. Everywhere, piecewise, …

Periodic, deterministic, random, etc. Generally connected with the ability to predict the signal

MAE143A Signals & Systems 2013 Winter 36

Page 19: MAE143A Signals & Systems 2013 Winter 1 MAE143A Signals & Systems …oodgeroo.ucsd.edu/~bob/signals2013Winter/Signals_&_Systems_Wint… · Schaum Outline Signals and Systems by Hwei

Signal norms – a measure of signal size

General Lp signal norms L2 Euclidean signal norm

often related to signal energy voltage, current, velocity signals

L1 norm L% norm or sup norm

MAE143A Signals & Systems 2013 Winter 37

�x�p�=

�� ∞

−∞|x(t)|p dt

� 1p

�x�2�=

�� ∞

−∞|x(t)|2 dt

� 12

�x�1�=

� ∞

−∞|x(t)| dt

�x�∞�= sup

t∈(−∞,∞)|x(t)|

Signal transforms – Laplace and Fourier

Expression of the signal in a different domain Laplace transform for signals defined on domain [0-,%] Fourier transform for signals defined on the domain [-%, %] Since the transforms are invertible no information is lost in

using them instead of the original time-domain description

MAE143A Signals & Systems 2013 Winter 38

X(ω)�=

� ∞

−∞x(t)e−jωt dt, x(t) =

1

� ∞

−∞X(ω)ejωt dω, for all t

X(s)�=

� ∞

0−x(t)e−st dt

x(t) =1

2πj

� c+j∞

c−j∞X(s)est ds, for t ≥ 0