0% found this document useful (0 votes)
58 views5 pages

Exp-2 DSP

This document describes an experiment to generate continuous time and discrete time signals using SCI Lab software. It defines continuous time signals as those where time is a continuous variable and discrete time signals as those where time is discrete. The experiment code generates sinusoidal continuous and discrete time signals, plots them, and asks pre-lab and post-lab questions about continuous vs. discrete time signals and analog vs. digital signals.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views5 pages

Exp-2 DSP

This document describes an experiment to generate continuous time and discrete time signals using SCI Lab software. It defines continuous time signals as those where time is a continuous variable and discrete time signals as those where time is discrete. The experiment code generates sinusoidal continuous and discrete time signals, plots them, and asks pre-lab and post-lab questions about continuous vs. discrete time signals and analog vs. digital signals.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

SRM Institute of Science and Technology

College of Engineering and Technology


Department of Electronics and Communication Engineering
18ECC204J DIGITAL SIGNAL PROCESSING
Fifth Semester, 2022-23 (Odd semester)

Name :

Register No. :

Day / Session :

Venue :

Title of Experiment :

Date of Conduction :

Date of Submission :

Marks
Particulars Max. Marks
Obtained
Pre lab and Post lab 10

Lab Performance 10

Simulation and results 10

Total 30

REPORT VERIFICATION

Staff Name :

Signature :
Experiment 2:

Experiment 2: Generation of Continuous Time and


Discrete Time Signal
Aim: To generate the continuous time and discrete time signal using SCI lab

Software Requirement: SCI Lab

Theory:

Signals are represented mathematically as functions of one or more independent variables.


Here we focus attention on signals involving a single independent variable. For convenience,
this will generally refer to the independent variable as time. There are two types of signals:
continuous-time signals and discrete-time signals. Continuous-time signal: the variable of
time is continuous. A speech signal as a function of time is a continuous-time signal.
Discrete-time signal: the variable of time is discrete.

Fig.1. CT signal Fig.2 DT signal

To distinguish between continuous-time and discrete-time signals we use symbol t to denote


the continuous variable and n to denote the discrete-time variable. And for continuous-time
signals we will enclose the independent variable in parentheses (·), for discrete-time signals
we will enclose the independent variable in bracket [·].

A discrete-time signal x n][ may represent a phenomenon for which the independent variable
is inherently discrete. A discrete-time signal x n][ may represent successive samples of an
underlying phenomenon for which the independent variable is continuous. For example, the
processing of speech on a digital computer requires the use of a discrete time sequence
representing the values of the continuous-time speech signal at discrete points of time.
The differences between continuous and discrete-time signals are as follows:
The differences between discrete and digital signals are as follows:
PROGRAM

// GENERATION OF CONTINUOUS TIME SIGNAL AND DISCRETE TIME SIGNAL


clear ;
clc ;
close ;
t =0:0.01:2;
x1 =sin (7* t ) +sin (10* t ) ;
subplot (1 ,2 ,1) ;
plot (t , x1 ) ;
xlabel ( 't' ) ;
ylabel ( 'x(t)') ;
title ( 'CONTINUOUS TIME SIGNAL');
n =0:0.2:2;
x2 =sin (7* n ) +sin (10* n ) ;
subplot (1 ,2 ,2) ;
plot2d3 (n , x2 ) ;
xlabel ( 'n') ;
ylabel ( 'x(n)') ;
title ( 'DISCRETE TIME SIGNAL' ) ;

SIMULATION RESULT
Pre-lab questions:
1. Define continuous time signal
2. How is discrete time signal generated?
3. Draw the graphical representation of continuous time signal and discrete time signal

Post-Lab questions:
1. Write any three difference between analog signal and digital signal
2. Write the code for generation of discrete signal for time interval 5µs and 7µs using
subplot function
3. Give the advantages of digital signal over analog signal

Result:

You might also like