Preview

Dsp Tools Like Matlab and Gnu Octave

Good Essays
Open Document
Open Document
544 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Dsp Tools Like Matlab and Gnu Octave
Submitted To
The Department of Electronics and
Computer Engineering

Submitted By
Dhruba Adhikari

Familiarization with Basic CT/DT functions

Objective
The basic objective of this lab was to be familiar with MATLAB, one of the most famous tools used in Signal Analysis and Processing.

Theory

Impulse Signal
The impulse function, also known as Dirac delta function or Dirac impulse, is defined by
| |

Ramp and Step Signals
The step signal is zero for negative input and one for positive. Thus, it is defined by

Whereas, provided a width parameter, if a step signal is modeled than its a ramp signal characterized by following mathematical relation. Hence, a step signal is that ramp which has width parameter zero.
| |

Rectangular Signal
A Rectangular signal is defined by
Exercise
1. Plot the basic signal using matlab.
a. Impulse Signal

N =15; y =[zeros(1,(N–1)/2) 1 zeros(1,(N–1)/2)] x =[-( N - 1 ) /2 ) : ( N – 1 ) /2 ] stem(x,y)

Discussion: An assumed infinity of 15 points was taken and the impulse signal of having infinite magnitude at a single time instant was generated.

b. Unit Step Signal N=15 y=[zeros(1,(N-1)/2) 1 ones(1,(N-1)/2)] x=[-(N-1)/2:(N-1)/2] stem(x,y)

Discussion: Plotted such that magnitude at the negative axis is zero and that at the positive axis is unity.

c. Ramp Signal N=15 y=[zeros(1,(N-1)/2) ,0 , 1: (N-1)/2] x=[-(N-1)/2:(N-1)/2] stem(x,y)

Discussion y=0 for x0
d. Rectangular Signal N=15 y=[zeros(1,(N-1)/3) ones(1,N -(N-1)/3*2) zeros(1,(N-1)/3)] x=[-(N-1)/2:(N-1)/2] stem(x,y)

2. Plot the

You May Also Find These Documents Helpful