0% found this document useful (0 votes)
24 views

Lab03 Sampling Fall2019

The document describes taking a continuous time sinusoidal signal and sampling it at fixed intervals to analyze its frequency response. It provides instructions to generate signals like a square wave and impulse train, and sample and analyze the signals using MATLAB commands like fft. The tasks involve generating signals at different frequencies, multiplying them together, and analyzing the sampled frequency spectra using fft both when the impulse train is 1 and 0.

Uploaded by

Tahir Khan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Lab03 Sampling Fall2019

The document describes taking a continuous time sinusoidal signal and sampling it at fixed intervals to analyze its frequency response. It provides instructions to generate signals like a square wave and impulse train, and sample and analyze the signals using MATLAB commands like fft. The tasks involve generating signals at different frequencies, multiplying them together, and analyzing the sampled frequency spectra using fft both when the impulse train is 1 and 0.

Uploaded by

Tahir Khan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Lab 03

Sampling of a Continuous Time Signal & its Frequency Analysis

Objective:
In today’s lab we will take a continuous time signal and sample it out with a fixed sampling time period and
analyze its frequency response at each point.
Commands to be used:
• plot • real • exp • imag • tf2zp
• freqz • diff • sin/cos • hold on/off

Help on these commands is available in MATLAB help directory.


Procedure:
1. Open M-file or M-Book
2. Save it by any useful name but remember not to start the name by any numeric digit, do not use any special
character other than under-the-score ( _ ) and also remember not to give any space in the name.

Task I
3. Firstly, take a continuous time sinusoidal with a cutoff frequency of 50 Hz with a simulated sampling frequency
of 1000. Analyze its frequency spectrum using “fft”.
4. Generate a square wave of frequency “2fn”.
5. Analyze its frequency spectrum using “fft”.
6. Take its absolute derivative of square wave resulting in impulses thus generating impulse-train, followed by
step 5. Normalize it.
7. Now multiply the impulse train with the sinusoidal, thus generating a semi discrete signal x(nT). Repeat step 5
for analysis.
8. Now use a loop and pick all samples from x(nT) where the impulse train is 1.
9. Once again repeat step 5.
10. Now generate a square wave with frequency “3fn/2” and “5fn” and repeat step 5 to 9 for both the frequencies.

Questions:
1. Provide your analysis for the changed frequency of Impulse train.
2. Explain if you observe under or over sampling.

You might also like