Digital Signals and System [1] - Signal Fundamentals
What is a Signal ?
A signal is an entity that carries information.
A signal can be modeled as a function.
Examples :
- Temperature is a function of time (Continuous)
- hourly average temperature is a function of hour (Discrete)
Classification of a signal
Signal function
- Domain defines the allowable values of the argument of a function ( in )
- Range defines the allowable values of a function ( in )
- A signal can be either discrete- or continuous-time
- Discrete-time function - The number of allowable values in the domain is countable
- Continuous-time function - The number of allowable values in the domain is not countable
denotes a discrete-time signal
n
means particular time instance in the sequencedenotes a continuous-time signal
- The argument can be any time-oriented variable
C.T.S. (Continous Time Signal)
C.T.S. is Not good, We cannot use a computer to handle it since there are infinite number of time instance.
Therefore we need to convert it into D.T.S. Through Sampling.
Sampling
Measuring the continuous-time signal to produce a new function whose number of domain values is countable.
D.T.S. (Discrete Time Signal)
Representation of a signal
Time-domain representation - Represented in the original form of the function.
- Not only apply to functions of time
- Can apply to a function of any variable as long as the function value changes according to an ordered sequence of time instants.
Any continuous periodic signal can be represented as a sum of scaled sinusoidal signals.
A Time Domain Representation Signal is a combination of many sinusoidal signals (Frequency domain):
- x Sinusoid
- x Sinusoid
- x Sinusoid
- x Sinusoid
- x Sinusoid
- x Sinusoid
- …
is the Scaling factors
is the phase angles
They are unique to a signal. We can use them to represent the signal.
DC coefficient -
AC coefficient - where i > 0
Frequency-domain representation
- Represented with the set of scaling factors + phase angles
Waveform vs Spectrum
- Waveform - a plot of a function of time
- Spectrum - a plot of a function of frequency
Each sinusoid is called a frequency component of the signal
Sinusoid is Identified by its frequency which specifies how many cycles it repeats in a second.
High frequency component
- repeat quickly
Low frequency component
- repeat slowly
DC component
- Don’t change at all (frequency = 0 Hz, change 0 times/s)
- Average value of the signal
- is a constant term
AC component
- Any components other than the DC one
- AC components cannot share the same frequency
Bandwidth of a signal
The range of frequencies bounded by the DC component and the non-zero frequency component having the maximum frequency.
Bandwidth = = Highest frequency - Lowest frequency
Signal Representation
Continuous-time Signals (Analog Signals)
Also known as analog signals.
continuous signals =/= continuous-time signals
- Domain variable
- May not be continuous signals
- Usually decomposed into a combination of basic functions for study.
Note: Vectical Line = Gap = Discontinuous
Basic functions
Impulse Function
It is a continuous-time signal that is not continuous
Unit Step Function
It is a continuous-time signal that is not continuous
Sign Function
It is a continuous-time signal that is not continuous
Ramp Function
Impulse Train Function
It is a continuous-time signal that is not continuous
Rectangle Function
It is a continuous-time signal that is not continuous
Triangle Function
Sinc Function
Dirichlet Function
Continuous Signals
The signal is said to be discontinuous at the point if
- The value of jumps at point
If the signal x(t) is continuous at all points , is said to be a continuous signal.
- Note this is different from continuous-time signal
Discrete-time Signals
Basically, A Continous Signal will become Discrete Signal after Sampling Process.
Note: Discrete-time Signals can never be a continuous function.
Sample @ to get
Note:
= Sampling Period
= Sampling Frequency
Basic discrete functions
Basic discrete functions can be obtained by sampling basic functions.
Like continuous-time function, Discrete functions can also be represented as shifted, reflected, scaled versions of basic discrete functions or combinations of them.
Time-shifting
Given and a positive integer
- : shift to the right by step
- : shift to the left by step
Time-reflecting
Given
- : a time-reflected version of about .
Time-scaling
Given
- : a time-scaled version of where k is generally an integer.
- If , It is called Supsampling. All the values of will not be retained.
- If , The extra values will be filled with s since the sample does not exist.
Even Function and Odd Function
Even function : Symmetrical (Mirrored)
Odd function : Not Mirrored
Note:
Sin component is a Odd function
Cos component is a Even function
Periodic Discrete-time Signals
A discrete-time signal x[n] is periodic if there exists a positive integer r such that
Fundamental period
smallest value of r
Examples:
A discrete cosine function which repeats every 2 samples:
The Fundamental period is 2.
Note: A sampled periodic time-continuous signal may not be a periodic discrete signal.
After sampling, may not be still periodic**
Ex1
Determine whether the following signals are periodic or not. For periodic signals, determine also the fundamental period.
Keypoints:
Determine the function cycle
If it is periodic, otherwise not periodic
must be positive integer value.
Q1:
if is the period
where
<- We used because sin function cycle every
Therefore,
<- is any integer value
can be a interger -> Valid -> Periodic
To get the Minimizing value
By sub ,
Fundamental period = = 8
Q2:
<- We used because sin function cycle every
<- is any integer value
cannot be a interger -> invalid -> Not Periodic
Q3:
<- We used because cos function cycle every
<- is any integer value
cannot be a interger -> invalid -> Not Periodic
Q4:
<- We used because cos function cycle every
<- is any integer value
can be a interger -> Valid -> Periodic
To get the Minimizing value
By sub ,
Fundamental period = = 20
Note: Since must be a positive integer, you might encounter situations like
In this case, You should sub instead of to get the positive integer value.
Discrete-time signal (DTS) is obtained by sampling Continous-time signal (CTS) . Determine the sampling frequency and the sampling period of . (By default, unit of t is second unless specified otherwise.)
Keypoints:
->
= Sample
= Sampling Period ( time for 1 sample)
= Sampling Frequency
First you get the frequency from the continous-time signal (CTS):
Frequency = Hz
Period = 0.8 sec
Radian frequency = =
For discrete-time signal (DTS):
Sampling Period = 0.04 sec
Sampling Frequency = Samples per second
Note: With ,
now you know the fundamental period of samples.
If you want to represent it in unit seconds:
samples = = 0.8 seconds
Ex 2
(a)
Sampling period = sec
(b)
Yes. x(t) is continuous.
©
Note : .
Therefore
(d)
Look at first.
Let period of be samples <- It is basically in our previous questions
<- We used because sin function cycle every
<-- m is any integer value
Note : needs to be integer.
Fundamental period of is 5 samples.
Now look after
Let period of be samples <- It is basically in our previous questions
<- We used because sin function cycle every
<-- m is any integer value
Fundamental period of is 20 samples.
Therefore the period of is 20 samples.
(e)
The fundamental period in terms of second = sample times sampling period = s sec
Digital Signals
A digital signal is a discrete-time signal whose values belong to the finite set .
- A digital signal can have only a finite number of different values
After Quantization,
Discrete-time signal -> Digital signal
Full Picture:
Continous sign —Sampling—> Discrete-time signal —Quantization—> Digital signal
This is what digital signal looks like.
Ex 3
(a)
The ans is 1. Dc is the constant term. it does not change with time.
(b)
The ans is 2. In Frequency domain analysis, we decompose a signal into sinosoids. Each contributes 1 ac component.
Note: Ac components cannot share the same frequency.
for example. if , we consider 1 ac component only, because both cos function have the same frequency.
©
The ans is 3.
(d)
The ans is .
Note: Bandwidth = = Highest frequency - Lowest frequency
Find their highest frequency and lowest frequency.
Frequency of : (DC component)
Frequency of :
Frequency of :
Highest = 2, Lowest = 0.
(e)
Note: Sin component is a Odd function, Cos component is a Even function
contains both sin component and cos component.
Therefore is neither even or odd function.
(f)
Note: we ignore DC term when finding fundamental period.
Period of : (DC component)
Period of :
Period of :
Fundamental period = 4 second (LCM of both periods)
(g)
Ex 4
Keypoint : Basic discrete functions.
Note They both have the height of 1 and stands at 0.
Looks like this:
Looks like this:
(a)
This is a easy one.
First, Look at .
is basically but shifted to right by 2 units.
Now Look at .
is basically but shifted to left by 1 unit.
Therefore, after multiply the height, this is how looks like:
(b)
First, Look at .
and are basically with right shift of 2 and 5 units respectively.
means the starts from 2 and stop at 4. ()
Next, Look at .
and are basically with right shift of 6 and 8 units respectively.
means the starts from 6 and stop at 7. ()
Multiply the height and join them together.
Since it is not easy to visualize like impulse functions, We can draw a table to plot it out.
n 1 2 3 4 5 6 7 8 5n 10 15 20 8-n 2 1 g[n] 0 10 15 20 0 2 1 0 you will get this graph.
Ex 5
This is a easy one. We break it into segments.
We can clearly see there is 2 operated function there. the second one is fliped with x axis (times -1).
So we can interprete that the function look like this : (I denote the function with and )
First, Look at .
It is a operated function. thus it is .
Now Look at .
It is a operated function. thus it is .
Therefore, =
=
Ex 6
Keypoint : Ramp Function.
Important thing to remember : in ramp function , . You might say the height of ramp[n] = n.
In this question, we can break it into two segment.
First look at the first segment.
, Thus it is .
Note: since it is a ramp function, remember to times .
So it is .
Second segment is only a impulse function with half height.
So it is .
Therefore: