Experiment 1: Baseband Pulse Shaping and Detection
Objective
To understand baseband pulse shaping using raised cosine and sinc pulses, analyze eye
diagrams, simulate the effects of noise and timing errors, and visualize inter-symbol
interference (ISI) in BPSK systems.
Experiment Subparts
(i) Pulse Design Without Built-in Functions
Write MATLAB code to generate raised cosine pulses and sinc pulses without using built-in
functions like `rcosdesign` or `sinc`.
Parameters:
- Roll-off factor: β = 0.25, 0.5, 1
- Pulse duration: T = 1 unit
- Sampling factor: L = 8 or 16 samples/symbol
- Use time vector from -4T to +4T
Expected Output:
- Time-domain plot of each pulse
- Overlay sinc and RC pulses for comparison
(ii) BPSK Signal Generation and Pulse Shaping
Generate a random BPSK symbol sequence.
- Use your pulse from part (i) to shape the symbols via convolution.
- Normalize output energy.
Create an eye diagram of the shaped signal without noise.
Expected Output:
- Eye diagram showing clean eye openings for different β
- Discuss effect of β on eye shape
(iv) Eye Diagram with AWGN
Add AWGN to shaped signal
- Replot eye diagrams for different SNRs: 20 dB, 10 dB, 0 dB
- Observe and report eye closure
Expected Output:
- Eye diagrams for each SNR
- Comment on ISI vs noise effects
(v) Effect of Timing Offset
Introduce timing offset to sampling point (e.g., +0.1T, +0.25T)
- Plot the received samples and calculate the symbol error rate (SER)
- Compare performance with sinc and RC pulses
Expected Output:
- SER vs timing offset plot
- Discussion on timing sensitivity of sinc vs RC
This is for Sinc. Do for both Sinc and RC.
(vi) ISI Visualization
Manually transmit sequences like [1 0 0 0] and [0 0 1 0] and analyze resulting shaped
signals
- Overlay contributions from neighboring symbols
Expected Output:
- Plot showing ISI for each symbol
- Mark peak and interference points
(vii) Matched Filtering and Optimal Sampling
Implement matched filtering using time-reversed pulse
- Add noise and perform symbol detection at optimal points
Simulate BPSK over AWGN using your raised cosine pulse
- For each SNR from 0 to 20 dB, calculate BER using matched filtering
Expected Output:
- BER vs SNR plot
- Comparison with theoretical BPSK BER curve
(ix) Frequency Domain Analysis
Compare spectra of rectangular pulse, sinc, and RC pulse
- Observe bandwidth and side-lobe behavior
Expected Output:
- Spectrum plots
- Comment on trade-off between bandwidth and ISI
Expected Learning Outcomes
- Understand design principles of zero-ISI pulses
- Observe how roll-off factor β affects time/frequency behavior
- Gain intuition on eye diagrams and timing synchronization
- Relate theory (matched filtering, ISI, noise) with practical plots