This project focuses on Fourier analysis, sampling, reconstruction, and aliasing in signal processing using MATLAB. It consists of two main components:
- Fourier Analysis: Implementation of Fourier Series and Fourier Transform.
- Sampling and Reconstruction: Investigating the effects of different sampling rates and reconstructing signals.
EECE340_Project/
│── 1_FourierAnalysis/
│ │── ffs.m # Fourier Series Implementation
│ │── ftr.m # Fourier Transform Implementation
│ │── iftr.m # Inverse Fourier Transform
│ │── main1.m # Main script for Fourier Analysis
│
│── 2_SamplingReconstruction/
│ │── sample.m # Sampling function
│ │── reconstruct.m # Signal Reconstruction function
│ │── main_samp_rec.m # Main script for sampling & reconstruction
│ │── main_Real.m # Real-world application testing
│ │── 19_R.csv # Sampled data (Right)
│ │── 25_L.csv # Sampled data (Left)
│ │── 27_B.csv # Sampled data (Blink)
To analyze Fourier representations, execute:
main1;This will:
- Compute and plot Fourier Series approximations.
- Compute and plot Fourier Transform results.
- Perform error analysis based on different parameters.
To investigate sampling effects and reconstruct signals, execute:
main_samp_rec;This will:
- Sample signals at different rates (0.5fN, 2fN, and 4*fN).
- Reconstruct signals and compare results.
To process real-world eye movement data (Blink, Left, Right), execute:
main_Real;This will:
- Read sampled data from CSV files.
- Apply sampling and reconstruction.
- Plot the results for different conditions.
ffs.m: Computes the Fourier Series approximation of a signal.ftr.m: Computes the Fourier Transform of a signal.iftr.m: Computes the Inverse Fourier Transform.
sample.m: Samples a signal at a given rate.reconstruct.m: Reconstructs a signal using sinc interpolation.main_samp_rec.m: Compares sampling and reconstruction at different rates.main_Real.m: Processes real-world signals and applies sampling and reconstruction.
- Ensure all
.csvfiles are in the same directory asmain_Real.m. - MATLAB's built-in functions for Fourier analysis are not used to ensure manual implementation.
- Modify sampling rates in
main_samp_rec.mas needed for further experimentation.
This project was completed by Lynn Ariss, Raghad Al Agha and Claritta Khoury as part of the EECE 340 course at the American University of Beirut.