Clear Filters
Clear Filters

how to build a channel fading model?

7 views (last 30 days)
raya alhajri
raya alhajri on 10 May 2022
Answered: Balavignesh on 13 Oct 2023
Hi,
I have 3000 IQ packets and I would like to augment them via κ -μ / inverse gamma composite fading channel. How can I do so while the channel model is not available in Matlab such as other channel models like WlanTgnChannel ??
Thank you,

Answers (1)

Balavignesh
Balavignesh on 13 Oct 2023
Hi Raya,
As per my understanding, you would like to augment 3000 IQ packets via κ -μ / inverse gamma composite fading channel.
I would suggest you create a custom implementation to simulate this channel model. You could generate κ -μ and inverse gamma random variables using the 'gamrnd' function. Then, you could apply fading to the IQ packets by multiplying the IQ packets with the fading coefficients obtained from the κ -μ and inverse gamma distributions.
The following code may help you understand this:
% Parameters for κ-μ distribution
kappa = 2; % Shape parameter
mu_k = 1; % Mean parameter
% Parameters for inverse gamma distribution
alpha = 2; % Shape parameter
beta = 1; % Scale parameter
% Example IQ packets
original_packets = randn(1, 3000) + 1i * randn(1, 3000);
% Generate fading coefficients for κ-μ distribution
fading_kmu = sqrt(gamrnd(kappa, mu_k^2/kappa, 1, 3000));
% Generate fading coefficients for inverse gamma distribution
fading_inv_gamma = sqrt(1 ./ gamrnd(alpha, 1/beta, 1, 3000));
% Apply fading to IQ packets
augmented_packets = fading_kmu .* fading_inv_gamma .* original_packets
Kindly have a look at the following documentation links to have more information on:
Hope that helps!
Balavignesh

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!