PDF and CDF of rician distribution simulation source

8 ビュー (過去 30 日間)
Temkin Tegegn 2021 年 5 月 26 日
コメント済み: Temkin Tegegn 2021 年 5 月 30 日
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
2 件のコメント表示非表示 1 件の古いコメント
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.

サインインしてコメントする。

回答 (2 件)

Jeff Miller 2021 年 5 月 26 日
Why can't you use this:
pd = makedist('Rician')
2 件のコメント表示非表示 1 件の古いコメント
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 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);
1 件のコメント表示非表示 なし
Temkin Tegegn 2021 年 5 月 30 日
Thanks Jeff Miller '_'

サインインしてコメントする。

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by