Chuyển đến nội dung

Bài 5 · Signals and Classification

Basic Signals: Step, Impulse, Ramp, Exponential

Meet the building-block signals of the field: unit step, unit impulse, ramp, rectangular pulse, exponentials and sinusoids, in continuous and discrete time.

Complicated signals are built from a small vocabulary of simple ones. Learn these well and you can express almost anything: a switch turning on is a step, a hammer tap is an impulse, a decaying echo is a real exponential, a pure tone is a sinusoid. Most of the theory in the later chapters is stated in terms of them.

Unit step

The unit step switches on at time zero.

  • Discrete: u[n] = 1 for n >= 0, else 0.
  • Continuous: u(t) = 1 for t > 0, else 0 (the value at exactly 0 is a convention, often 1/2 or left undefined).

Multiplying any signal by u(t) makes it causal: it "switches on" at 0.

Unit impulse

The discrete unit impulse (Kronecker delta) is delta[n] = 1 when n = 0, otherwise 0. It is a single 1 in a sea of zeros.

The continuous unit impulse delta(t) (Dirac delta) is not an ordinary function. It is a limit of ever-narrower, ever-taller pulses with area 1. Its defining behavior is the sifting property:

integral of x(t) delta(t - t0) dt = x(t0)

Inside an integral the impulse picks out the value of x at t0. The discrete version is a plain sum: sum over n of x[n] delta[n - n0] = x[n0].

The step and impulse are related. In discrete time, delta[n] = u[n] - u[n-1] and u[n] = sum of delta[k] for k <= n (a running sum). In continuous time, delta(t) = du/dt.

Python Step, impulse and their relation

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Ramp and pulse

The unit ramp is r[n] = n u[n] (or r(t) = t u(t)): zero until 0, then rising at slope 1. It is the integral of the step. A rectangular pulse is the difference of two steps: rect = u(t + 1/2) - u(t - 1/2) is 1 for |t| < 1/2. Pulses built from steps are the easiest way to write "on for a while, then off".

Python A pulse made from two steps

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Real exponential

x(t) = A e^(a t) with real a. If a < 0 it decays (a discharging capacitor), if a > 0 it grows (unchecked population). In discrete time the form is x[n] = A r^n: with |r| < 1 it decays, with |r| > 1 it grows, and with a negative r it flips sign each step. The time constant of a decaying exponential is tau = 1/|a|: after one tau the signal has fallen to about 37 percent.

Sinusoid

x(t) = A cos(2 pi f t + phi) has amplitude A, frequency f (Hz), angular frequency w = 2 pi f (rad/s) and phase phi. A discrete sinusoid is x[n] = A cos(Omega n + phi); the discrete frequency Omega is in radians per sample. A surprise awaits in discrete time: x[n] is only periodic if Omega / (2 pi) is a rational number, and frequencies Omega and Omega + 2 pi give identical signals. We return to that in the sampling chapter.

Complex exponential

x(t) = e^(j w t) combines the sinusoid pair (see Complex Numbers and Phasors). With a decay factor, e^((sigma + j w) t) is a damped sinusoid when sigma < 0, the characteristic response of springs and RLC circuits.

Python Decaying and damped signals

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A signal zoo in one picture

Building-block signals

Unit step Switches on at 0
Unit impulse A single spike
Ramp Rises at slope 1
Sinusoid A pure tone

Everything else is built from these.

1 / 2

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is the sum over n of x[n] delta[n - 3]?

    The sifting property picks out the single value of x where the impulse equals 1, which is n = 3.
  2. 2. How is the discrete impulse written using steps?

    The two steps agree everywhere except n = 0, so their difference is a single 1 at n = 0.
  3. 3. The time constant of e^(-t/0.2) is:

    For e^(-t/tau) the time constant is tau, here 0.2 s.
  4. 4. Which discrete exponential alternates in sign while decaying?

    A negative base flips the sign every step, and |r| < 1 makes it shrink.

Summary

  • The unit step switches on; the unit impulse is a single spike with the sifting property.
  • Discrete: delta[n] = u[n] - u[n-1]; continuous: delta(t) = du/dt.
  • Ramps, pulses and one-sided signals are built by multiplying by or subtracting steps.
  • Real exponentials decay or grow with time constant 1/|a|; sinusoids carry amplitude, frequency and phase.
  • Complex exponentials unify sinusoids and damped waves.

Next: Operations on Signals

Theo dõi tiến độ của bạn

Tạo tài khoản miễn phí để đánh dấu bài đã học và tiếp tục từ chỗ bạn dừng lại trên mọi thiết bị.