

















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















































MATLAB Simulation Frequency Diversity: Wide-Band Signals
MATLAB Simulation Frequency Diversity: Wide-Band Signals Digital Matched Filter and Slicer Monte Carlo Simulation
MATLAB Simulation Frequency Diversity: Wide-Band Signals Digital Matched Filter and Slicer Monte Carlo Simulation
× p(t )
∑ δ (t − nT )
h(t ) +
N(t )
Π Ts (t )
Sampler, rate fs
to DSP
bn s(t^ )^ R(t^ )^ R[n]
MATLAB Simulation Frequency Diversity: Wide-Band Signals Digital Matched Filter and Slicer Monte Carlo Simulation
MATLAB Simulation Frequency Diversity: Wide-Band Signals Digital Matched Filter and Slicer Monte Carlo Simulation
↑ fs T h[n] +
N[n]
to DSP
bn R[n]
MATLAB Simulation Frequency Diversity: Wide-Band Signals Digital Matched Filter and Slicer Monte Carlo Simulation
× p(t )
∑ δ (t − nT )
h(t ) +
N(t )
Π Ts (t )
Sampler, rate fs
to DSP
bn s(t^ )^ R(t^ )^ R[n]
MATLAB Simulation Frequency Diversity: Wide-Band Signals Digital Matched Filter and Slicer Monte Carlo Simulation
MATLAB Simulation Frequency Diversity: Wide-Band Signals Digital Matched Filter and Slicer Monte Carlo Simulation
MATLAB Simulation Frequency Diversity: Wide-Band Signals Digital Matched Filter and Slicer Monte Carlo Simulation
MATLAB Simulation Frequency Diversity: Wide-Band Signals Digital Matched Filter and Slicer Monte Carlo Simulation
Listing : SimpleSetParameters.m 3 % This script sets a structure named Parameters to be used by % the system simulator.
%% Parameters % construct structure of parameters to be passed to system simulator 8 % communications parameters Parameters.T = 1/10000; % symbol period Parameters.fsT = 8; % samples per symbol Parameters.Es = 1; % normalize received symbol energy to 1 Parameters.EsOverN0 = 6; % Signal-to-noise ratio (Es/N0) 13 Parameters.Alphabet = [1 -1]; % BPSK Parameters.NSymbols = 1000; % number of Symbols
% discrete-time equivalent impulse response (raised cosine pulse) fsT = Parameters.fsT; 18 tts = ( (0:fsT-1) + 1/2 )/fsT; Parameters.hh = sqrt (2/3) (^) * ( 1 - cos (2* pi tts) sin ( pi /fsT)/( pi /fsT));
MATLAB Simulation Frequency Diversity: Wide-Band Signals Digital Matched Filter and Slicer Monte Carlo Simulation
A = sqrt (Es/T); % transmitter gain N0 = Es/EsOverN0; % noise PSD (complex noise) NoiseVar = N0/TfsT; % corresponding noise variance N0/Ts Scale = Ahh*hh’; % gain through signal chain 34 %% simulate discrete-time equivalent system % transmitter and channel via toolbox functions Symbols = RandomSymbols( NSymbols, Alphabet, Priors ); Signal = A (^) * LinearModulation( Symbols, hh, fsT ); 39 if ( isreal (Signal) ) Signal = complex(Signal);% ensure Signal is complex-valued end Received = addNoise( Signal, NoiseVar );
MATLAB Simulation Frequency Diversity: Wide-Band Signals Digital Matched Filter and Slicer Monte Carlo Simulation
MATLAB Simulation Frequency Diversity: Wide-Band Signals Digital Matched Filter and Slicer Monte Carlo Simulation
function MFOut = DMF( Received, Pulse, fsT )
% convolve received signal with conjugate complex of % time-reversed pulse (matched filter) Temp = conv ( Received, conj ( fliplr (Pulse) ) ); 21 % down sample, at the end of each pulse period MFOut = Temp( length (Pulse) : fsT : end );
MATLAB Simulation Frequency Diversity: Wide-Band Signals Digital Matched Filter and Slicer Monte Carlo Simulation
0 1 2 3 4 5 6 7 8 9 10 −
−
0
200
400
Time (1/T)
DMF Input
0 1 2 3 4 5 6 7 8 9 10 −
−
0
500
1000
1500
Time (1/T)
DMF Output