DSP Part1
DSP Part1
Regulation 2021
LIST OF EXPERIMENTS:
TOTAL: 60 PERIODS
INDEX
LIST OF EXPERIMENTS
2 Correlation of Sequences
12a Up-sampling
12b Down-sampling
INTRODUCTION TO MATLAB
2. Algorithm development
3. Data acquisition
The name MATLAB stands for matrix laboratory. MATLAB was originally written to provide easy
access to matrix software developed by the LINPACK and EISPACK projects. Today, MATLAB
engines incorporate the LAPACK and BLAS libraries, embedding the state of the art in software for
matrix computation.
MATLAB has evolved over a period of years with input from many users. In university environments,
it is the standard instructional tool for introductory and advanced courses in mathematics, engineering,
and science. In industry, MATLAB is the tool of choice for high-productivity research, development,
and analysis.
MATLAB features a family of add-on application-specific solutions called toolboxes. Very
important to most users of MATLAB, toolboxes allow learning and applying specialized technology.
Toolboxes are comprehensive collections of MATLAB functions (M-files) that extend the MATLAB
environment to solve particular classes of problems. Areas in which toolboxes are available
include Image processing, signal processing, control systems, neural networks, fuzzy logic,
wavelets, simulation, and many others.
The main features of MATLAB
1. Advance algorithm for high performance numerical computation ,especially
in the Field matrix algebra
2. A large collection of predefined mathematical functions and the ability to
define one’s own functions.
3. Two-and three dimensional graphics for plotting and displaying data
4. A complete online help system
5. Powerful, matrix or vector oriented high level programming language for
individual applications.
6. Toolboxes available for solving advanced problems in several application areas
Ex. No: 1
Date :
GENERATION OF DISCRETE TIME SIGNALS
AIM:
To generate a discrete time signal sequence (Unit step, Unit ramp, Sine,
Cosine, Exponential, Unit impulse) using MATLAB function.
APPARATUS REQUIRED:
SOFTWARE : MATLAB
PROCEDURE:
1. Start the MATLAB program.
2. Open new M-file
3. Type the program
4. Save in current directory
5. Compile and Run the program
6. If any error occurs in the program correct the error and run it again
7. For the output see command window\ Figure window
8. Stop the program.
t = -4:1:4;
y1 = ones(1,9);
subplot(2,2,2);
stem(t,y1);
ylabel('Amplitude------>');
xlabel('n ------>');
title('Unit step');
% program for generation of ramp sequence
xlabel('n ------>');
title('Ramp sequence');
OUTPUT:
Enter the value for end of the sequence
7
Enter the length of exponential sequence
6
Enter the Amplitude
5
Unit impulse signal
y =
0 0 0 1 0 0 0
y1 =
1 1 1 1 1 1 1 1 1
x =
0 1 2 3 4 5 6 7
Exponential sequence
y2 =
1.0e+13 *
0.0000 0.0000 0.0000 0.0000 0.0000 0.0072 1.0686