discrete baseband channel model
Afficher commentaires plus anciens
Creating Matlab code for the following problem statement shown below. This is for a discrete baseband channel model lth (complex) channel filter tap. There is an iteration for the gains (a) and the delays (tau) and their values are shown below in the Matlab code that needs revising. I want it to run through each value of a and tau from the first to the last for the iteration.I need help tweaking the code so it can plot the amplitude of the channel model vs l. The Matlab code that needs revising is shown below. The bandwith is 200 kHz.Thank you in advance.


% Define the range of l values
l = -5:5;
f = 100000;
W = 200E3;
tau = [.2387 4E-6 3.40E-6 3.667E-6 3.59E-6];
a = [.2387 -.2 -.2341 -.217 -.222];
a*b = a(i)*exp*(-i*2*pi*f*tau(i));
% Compute the discrete baseband channel model h
h = zeros(size(l));
for idx = 1:length(l)
for i = 1:length(a)
h(idx) = h(idx) + (1i*a(i)*b(i)/W)*sinc(l(idx)-tau(i)*W);
end
end
% Plot the amplitude of h vs l
stem(l, abs(h));
xlabel('l');
ylabel('|h_l|');
title('Amplitude of the Discrete Baseband Channel Model');
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Circuit Envelope Simulation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
