PDF and CDF of rician distribution simulation source

16 visualizaciones (últimos 30 días)
Temkin Tegegn
Temkin Tegegn el 26 de Mayo de 2021
Comentada: Jeff Miller el 29 de Nov. de 2022
Hello everyone, I'm entirely new to matlab and I have an assignment that must be submitted within 2 days time. I found the simulated image but not the code https://en.wikipedia.org/wiki/File:Rice_distributiona_PDF.png for pdf and https://en.wikipedia.org/wiki/File:Rice_distributiona_CDF.png for cdf. I need your help with the source code guys
  4 comentarios
anuradha verma
anuradha verma el 29 de Nov. de 2022
What is 's' over here. please explain me this in term of shape and scale parameter. Your answer is highly appreciable.

Iniciar sesión para comentar.

Respuestas (2)

Jeff Miller
Jeff Miller el 26 de Mayo de 2021
Why can't you use this:
pd = makedist('Rician')
  2 comentarios
Temkin Tegegn
Temkin Tegegn el 29 de Mayo de 2021
Jeff Miller, thanks for the reply but how can I plot this? I need an output like this for rician PDF and CDF
Temkin Tegegn
Temkin Tegegn el 29 de Mayo de 2021
I appreciate the help guys. All I need is a source code to simulate rice/rician PDF and CDF in matlab. I study after work guys, I don't have time to learn new programming within a week which means less than 1 day of spare time if I put it in hours.

Iniciar sesión para comentar.


Jeff Miller
Jeff Miller el 29 de Mayo de 2021
OK, here's a more complete answer:
pd = makedist('Rician','s',0,'sigma',2); % Change to your required parameters
N = 1000; % size of random sample
x = pd.random(N);
histogram(x,'Normalization','pdf');
xpts = min(x):0.001:max(x);
xpdf = pd.pdf(xpts);
hold on;
plot(xpts,xpdf,'r- ','Linewidth',5);

Categorías

Más información sobre Wireless Communications en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by