0% found this document useful (0 votes)
139 views2 pages

LAB 1 Handout

The document describes an experiment on signal sampling and reconstruction. It involves generating sinusoidal signals, sampling them at different rates, reconstructing the signals using interpolation, and calculating the mean square error between the original and reconstructed signals. The goals are to observe the effects of different sampling rates, compare different interpolation techniques, and recreate the experiment in Simulink.

Uploaded by

ManuGear
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)
139 views2 pages

LAB 1 Handout

The document describes an experiment on signal sampling and reconstruction. It involves generating sinusoidal signals, sampling them at different rates, reconstructing the signals using interpolation, and calculating the mean square error between the original and reconstructed signals. The goals are to observe the effects of different sampling rates, compare different interpolation techniques, and recreate the experiment in Simulink.

Uploaded by

ManuGear
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/ 2

1

Experiment No. # 1
Discretization of signals : Sampling and Reconstruction

1) Objectives:
a) Signal Sampling and Reconstruction.
b) Introduction to simulink.

2) Software used:
a) MATLAB.

A. Pre-Lab
a) Read about analog to digital conversion.
b) Go through matlab inbuilt funcion.
sin(), interp1(), length(), ceil()

I. S AMPLING AND R ECONSTRUCTION


A. Theory
1) J. Proakis and D. Manolakis, Digital signal processing: principles, algorithms, and applications

B. Procedure
1) Generate a sinusoidal signal,
x(t) = A cos(2πf t)
of frequency 3000 Hz and 1Vpp for four complete cycles.(How do you generate an analoge signal
in MATLAB? if no, then what will be the other alternative?) Take Fs = 1, 00, 000 Hz for ideal signal.

2) The discrete time sampled signal is given by replacing t with nT s


x(nT s) = A cos(2πf nT s) (1)
where n is sample number and T s is time period of signal having frequency F s.

3) Generate sampled signal, y(t), after sampling x(t) with sampling frequency F s1 = 10000Hz.

4) Repeat 2 and 3 for different sampling frequencies F s2 = 6000 Hz, F s3 = 12000 Hz, F s4 = 4000
Hz, F s5 = 5000 Hz. Is there aliasing ?
2

5) Plot the spectrum of the above generated waves using fourier transform or inbuilt FFT funcion and
identify aliased frequencies.

6) For reconstruction of sampled signal pass y(t) through an interpolator and generate reconstructed
signal z(t) either writing linear interpoltion code or using inbuilt function interep1().

7) Calculate Mean square error(MSE) between x(t) and z(t). What should be the maximum and
minimum value of MSE for different sampling frequencies.

8) Calculate MSE for different interpolation techniques.

9) Observation:
a) Plot 5 cycles of input signal for different sampling frequencies.
b) Plot Fourier spectrum and determine the aliasing effect.
c) Find the MSE for linear interpolation with different sampling rates (Plot MSE Vs Fs ).
d) Repeat MSE VS Fs for different interpolation techniques.
e) Perform sampling and Interpolation in simulink.
10) Conclusion:
a) Use different sampling rates and conclude MSE observation?
b) Use different types of interpolation(linear, spline, cubic spline) and conclude which one is the
best?

II. I NTRODUCING S IMULINK


1) Open simulink and create a model file with .slx extension.

2) Find various sources(sinewave, binary sequence, random sequence) and sinks(display, constellation
diagram, to workspace) etc.

3) Drag the various functions to model file.

4) Search for matlab function in simulink blockset.

5) Repeat all the ’Procedure’ steps and recreate the sampling of discrete signal into simulink.

Well Done

You might also like