156k views
5 votes
Need Matlab code to compute numerically the discrete baseband channel model based on the problem statement and equation with the given parameters shown below.

Now, let's move to Matlab. Compute numerically the discrete baseband channel model hℓ​, for ℓ∈{−5,−4,⋯,5}. Plot the amplitude of hℓ​ vs ℓ and observe.
hℓ​[m]:=∑aᵇᵢ​(m/W)sinc[ℓ−τᵢ​(m/W)W]
i​

User Noctarius
by
7.8k points

1 Answer

3 votes

Final answer:

To compute the discrete baseband channel model numerically in MATLAB, use the given equation and parameters to calculate the values of hℓ for each ℓ. The MATLAB code provided loops through the range of ℓ values, calculates the sum of the equation for each ℓ, and plots the resulting amplitudes.

Step-by-step explanation:

To compute numerically the discrete baseband channel model in MATLAB, you can use the given equation and parameters to calculate the values of hℓ for each ℓ in the range -5 to 5. The MATLAB code to do this is as follows:

m = -5:5; % Range of ℓ
h = zeros(size(m)); % Initialize the array for hℓ

for idx = 1:length(m)
ℓ = m(idx);
sum = 0;
for i = 1:length(a)
sum = sum + a(i) * (m(i)/W) * sinc(ℓ - τ(i)/W);
end
h(idx) = sum;
end

plot(m, abs(h)); % Plot the amplitude of hℓ vs ℓ
xlabel('ℓ');
ylabel('Amplitude of hℓ');
User Thomas Koch
by
8.1k points