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

Lab 11 SS Revised

Uploaded by

Ziml Tariq
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)
8 views2 pages

Lab 11 SS Revised

Uploaded by

Ziml Tariq
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

Task 1:

Task 2:

a) The VI processes an audio signal from a CSV file by applying a comb filter and visualizing the
results in both time and frequency domains. Key steps include:
· The CSV file doubletwotrumpetsGA.csv is loaded, which contains the original signal
data.
· Sets up finite sampling and establishes parameters such as attenuation level (aa), filter
order (n), and fundamental frequency (fr).
· A comb filter is designed using the specified parameters. The filter is applied using Fast
Fourier Transform (FFT) operations, filtering the signal in the frequency domain and then
reconstructing it via Inverse FFT (IFFT).
· Visualizes the original signal and the filtered signal in both the time and frequency
domains using XY Graphs. Includes controls to play the original and filtered sounds for
auditory analysis.
· Allows dynamic interaction with the filter parameters to observe changes in the signal
processing results in real-time.

b) The MATLAB script processes an audio signal by applying a comb filter designed in the
frequency domain and visualizes the filtered results. Key steps include:
· It initializes signal parameters such as the sampling frequency (fs) and designs the comb
filter using given parameters like fundamental frequency (fr), attenuation (aa), and filter
order (n).
· The filter is designed using polynomial coefficients, and its effect is calculated via the
FFT of the filter's impulse response.
· The original signal X undergoes FFT to convert it to the frequency domain. The script
then applies the comb filter by multiplying the signal's FFT with the filter's FFT, followed
by an IFFT to reconstruct the filtered signal in the time domain.
· Outputs the original, noisy (interfered), and filtered signals, providing a visualization of
both time and frequency domain representations in MATLAB. The script ensures the
filtered signal and its spectral content are displayed for analysis and comparison.

You might also like