You are on page 1of 4

EXPERIMENT NO.

AIM OF THE EXPERIMENT:


A) Write a function in such a way that it will accept two sequences and
perform circular convolution between them in time domain.
B) Assume x(t)=Cos(2pi10t). Sample x(t) using fs=100Hz to generate
x(n) (take only 1st 8 samples). Assume h(n) = [1 ,1, 1, 1, 0, 0, 0, 0]
perform circular convolution between x(n) and h(n) using above
function to generate y [n].
Plot a) x[n] vs n(sec) b) h[n] vs n(sec) c) y[n] vs n(sec)
C) Perform B) using DFT and IDFT. For computing DFT and IDFT use
your own function. Compare the results and plots obtained in B) & C).

ABSTRACT:
This experiment explores the concept of circular convolution between
two sequences in both time domain and frequency domain. The
sequences involved are a sampled cosine waveform x(t)=cos(2π10t) and
an impulse response h(n)= [1,1,1,1,0,0,0,0]. Circular convolution is
performed using a custom function in the time domain and the Discrete
Fourier Transform (DFT) method. The results are visualized through
plots of the sequences and the convolved output. The aim is to
compare the outcomes of the time-domain and frequency-domain
approaches.

INTRODUCTION:
Circular convolution is a fundamental operation in signal processing,
essential for understanding systems and analyzing signals. This
experiment focuses on circular convolution between a sampled cosine
waveform and an impulse response. The time-domain convolution is
compared with the convolution using the Discrete Fourier Transform to
showcase the advantages of frequency-domain analysis.

PROCEDURE:
A) Circular Convolution in Time Domain:
• Define a function for circular convolution in the time domain.
• Generate the sampled cosine waveform x(n) using a given
sampling frequency fs=100 Hz.
• Define the impulse response h(n).
• Perform circular convolution y(n) using the custom function.
B) Sampling and Circular Convolution Visualization:
• Plot x(n) against n in seconds.
• Plot h(n) against n in seconds.
• Plot y(n) against n in seconds.
C) Circular Convolution using DFT and IDFT:
• Define a function for circular convolution using the Discrete
Fourier Transform.
• Perform circular convolution y(n) using the custom function.
• Plot y(n) against n in seconds.
RESULT:
The plotted results from both time-domain and frequency-domain
circular convolutions will be compared to assess their similarities and
differences. The goal is to understand how the convolution process
behaves in each domain and whether the results align as expected.

DISCUSSION:
Discuss the observed results, addressing any discrepancies between the
time-domain and frequency-domain convolutions. Explore the
advantages and limitations of each approach, considering factors such
as computational efficiency and numerical stability. Discuss the impact
of sampling rate on the results.

CONCLUSION:
Summarize the findings, emphasizing the effectiveness of circular
convolution in both time and frequency domains. Highlight the practical
implications of the experiment and potential applications in signal
processing.

REFERENCES:
1. Oppenheim, A. V., & Schafer, R. W. (1999). Discrete-Time Signal
Processing. Pearson.

You might also like