How to obtain Nakagami random variable from CDF plot?
이전 댓글 표시
zBin = [0:0.01:7];
w = 1;
m=1;
syms zBin;
pzTheory = 2*((m/w)^m)*(zBin.^(2*m-1)).*exp(-(zBin.^2)*m/w)/gamma(m);
F= int(pzTheory,zBin,0,zBin);
F1=abs(F)
ezplot(F, [0, 3]);hold on;
cdfinv=inv(F1);
%ezplot(cdfinv,[0 3]);hold on
%axis([0 3 0.5 -1 2]);
grid on
xlabel('z');
title('Cumulative Distribution function of Nakagami-m' )
I am able to get a cdf curve of Nakagami distribution,now how do i get a random variable from this plot. I need to use this random variable with BPSK. Please Help... Thanks in advance
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Nakagami Distribution에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!