You are on page 1of 14

Lab Manual Digital Signal Processing Name:Mohammad Salman

CMS ID: 49060

LAB NO. 3
SIGNAL GENERATOR
Lab Objectives:
To create Signal Generator in MATLAB software

List of Equipment:
 Personal computer
 MATLAB software

Theory
Signal Generator

➢ A signal generator is one of the most essential pieces of technology in electronics and
communication signal.

➢ It is used to produce different types of signals with set properties of amplitude, frequency,
and wave shape.

➢ These generated signals are used in designing, testing, troubleshooting, and repairing
electronic devices

➢ The most common class of signal generators that produce both repeating and non-
repeating waveforms across amplitudes and shapes.

1: Continuous Time Sinusoidal signal


 Code

Fig 1: cont time sinusoidal signal


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

Fig 2: cont time sinusoidal signal graph

2: Discrete Time Sinusoidal signal


 code

Fig 3: discrete time sinusoidal signal


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

Fig 4: discrete time sinusoidal signal graph

3:Continuous Time Co-sine signal


 code

Fig 5: continuous time co-sine signal


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

Fig 6: continuous time co-sine signal graph

4: Discrete Time Co-Sine signal


 code

Fig 7: discrete time co-sine signal


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

Fig 8: discrete time co-sine signal graph

5: Continuous time sawtooth signal


 code

Fig 9: continuous time sawtooth signal

Fig 10: continuous time sawtooth signal graph


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

6: Discrete time sawtooth signal


 code

Fig 11: discrete time sawtooth signal

Fig 12: discrete time sawtooth signal graph


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

7: Continuous time triangular signal


 code

Fig 13: continuous time triangular signal code

Fig 14: continuous time triangular signal graph


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

8: Discrete time triangular signal


 code

Fig 15: Discrete time triangular signal code

Fig 16: Discrete time triangular signal graph


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

9: Continuous time square signal


 code

Fig 17: continuous time square signal code

Fig 18: continuous time square signal graph


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

10: Discrete time square signal

Fig 19: discrete time square signal code

Fig 20: discrete time square signal graph

11: Continuous time exponential signal

Fig 21: Continuous time exponential signal code


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

Fig 22: Continuous time exponential signal graph

12: Discrete time exponential

Fig 23: discrete time exponential signal code

Fig 23: discrete time exponential signal graph


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

13: Damping sinusoidal signal

Fig 24: Damping sinusoidal signal code

Fig 25: Damping sinusoidal signal graph

Assignment
➢Task : Plot Sin and Cosine signal with frequency of 5hz,50hz and 100hz in continuous and
discrete time.
The amplitude of signal should be 5.

➢Results required
a. Code
Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

b. Graph

Conclusion
In this lab of DSP we have learnt about different discrete and continuous signals and we have
have code that in MATLAB as well and analyzed the output
Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

Rubrics
Student can Student
Student is Student has
understand perfectly
unable to Student has constructed
the provided implemented
follow the followed the
laboratory a working
provided instructions functional/
instructions model/ logic/
instructions to construct working
and familiar circuit/ block
properly. the schematic/
with the lab diagram/
The student fundamental model/
environment code and
can name the schematic/ block
(Trainer/ successfully
Demonstration Absent hardware or block diagram/
software/ executed the
simulation diagram/ code, and
IDE), but lab objective
platform, but code/ model have
cannot in Realtime
unable to on the successfully
implement or in a
implement protoboard/ executed the
on the simulation
anything trainer/ program/
platform environment
practically or simulation run circuit
practically and produced
on the software. on software
or on the the desired
software platform
software results
Category Ungraded Very Poor Poor Fair Good Excellent
Percentage [0] [1-20] [21-40] [41-60] [61-80] [81-100]
Marks 0.0 0.01 - 0.20 0.21 - 0.40 0.41 - 0.60 0.61 - 0.80 0.81 - 1.0
Total Marks Instructor’s Signature

Correctly
drawn
Plagiarized Requirements Observations Appropriate
conclusion
content are listed and are recorded computations
Laboratory Report not with
presented or experimental along with or numerical
Reports submitted exact results
incomplete procedure is detailed analysis is
and complete
submission presented procedure performed
report in all
respects
Category Ungraded Very Poor Poor Fair Good Excellent
Percentage [0] [1-20] [21-40] [41-60] [61-80] [81-100]
Marks 0.0 0.01 - 0.20 0.21 - 0.40 0.41 - 0.60 0.61 - 0.80 0.81 - 1.0
Total Marks Instructor’s Signature

You might also like