Description
Objectives:
Understanding different concepts of signals and systems signal operations, sampling theorem
using MATLAB script and Function.
Prerequisites:
Basics of Signals and Systems, Signal Operations, Sampling Theorem
Important Notes:
Plot results for problem (2) to (10) using subplot and keep input sequence and time
index is user defined.
Choose Time Index as per requirement of suitable waveform graph.
Solve following Problem statements using MATLAB:
1. Generate deterministic continuous time signal having equation x(t)= 3t/(4+t2
) and discrete
time signal having equation x(n)= 3n/(4+n2
). Use subplot command to display both figures.
2. Plot the continuous and discrete time sinusoidal wave for given amplitude, frequency,
phase and sampling frequency.
3. Generate the function for signal addition. Add two sequences x1(n) ={1,-1,2,5,1,5,-1} and
x2(n) ={-2,-8,9,4,2,3,5}.
4. Generate the function for signal multiplication. For Two sequences x1(n) ={1,-1,2,5,1,5,-1}
and x2(n) ={-2,-8,9,4,2,3,5}.
5. Generate the function for timing shifting. For sequences x(n) ={1,-1,2,5,1,5,-1}.
6. Generate the function for signal folding. Fold the sequence x(n) ={1,-1,2,5,1,5,-1}.
7. Generate the function for time multiplication. Use it for sequence x1(n) ={1,-1,2,5,1,5,-1}.
8. Generate function for unit sample signal ( ) Also plot ( ) and ( ).
SEAS WINTER 2020
2
9. Generate function for unit step signal ( ) Also plot ( ) and ( ).
10. Generate function for unit ramp signal ur( ) Also plot ur( ) and ur ( ).
11. Plot all the given signals and comment on their output for periodicity writing common
MATLAB code.
a. X(n) = cos(0.002 )
b. X(n) = (
)
c. X(n) = ( )
d. X(n) = (
)
e. X(n) =10 (
)
f. X(n) = 2
( )
12. Plot all the given signals and comment on their output for periodicity writing common
MATLAB code.
)
8 3
) 3cos(
6
) sin(
4
(4) ( ) 2cos(
)
9
) cos(
6
(3) ( ) cos(
)
7
) cos(
7
(2) ( ) cos(
)
4
3
) 5cos(
6
(1) ( ) 3cos(
n n n
x n
n n
x n
n n
x n
n n
x n
13. Sample the sinusoid x = sin(2 pi f t), where f = 2 kHz, and plot the sampled signals over the
continuous-time signal.
– Let x1 be the signal sampled at 10 kHz.
– Let x2 be the signal sampled at 3 kHz.
Plot required waveforms and comment on the same by writing common MATLAB code.