Plotting Rician Fading Channel
Show older comments
I'm having trouble plotting rician pdf.
I have already managed to plot what i think is the empircal density funtction in a histogram.
What i need is a trace red line like this image:

so far i have this:

generated using this code:
u = 2;
s = sqrt(0.5);
% Generate in-phase component
X = normrnd( u, s, [1 randSamples]);
% Generate quadrature component
Y = normrnd( u, s, [1 randSamples]);
% Rician RV, S = sqrt( X^2 + Y^2 )
S = sqrt( X .^ 2 + Y .^ 2 );
% empirical probability density
[f,x] = ecdf(S);
ecdfhist(f,x, 20); hold on
How to get the red line?
This is the question for reference:

Thanks.
Accepted Answer
More Answers (0)
Categories
Find more on Rician Distribution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!