PDF and CDF of rician distribution simulation source

조회 수: 17 (최근 30일)
Temkin Tegegn
Temkin Tegegn 2021년 5월 26일
댓글: Jeff Miller 2022년 11월 29일
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
anuradha verma
anuradha verma 2022년 11월 29일
What is 's' over here. please explain me this in term of shape and scale parameter. Your answer is highly appreciable.

댓글을 달려면 로그인하십시오.

답변 (2개)

Jeff Miller
Jeff Miller 2021년 5월 26일
Why can't you use this:
pd = makedist('Rician')
  댓글 수: 2
Temkin Tegegn
Temkin Tegegn 2021년 5월 29일
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 2021년 5월 29일
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.

댓글을 달려면 로그인하십시오.


Jeff Miller
Jeff Miller 2021년 5월 29일
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);

카테고리

Help CenterFile Exchange에서 Wireless Communications에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by