NetSim User Manual, section 10.2.1 Implement Weibull Distribution of MATLAB without using .m file 


While performing this procedure using NetSim and Matlab R201b, 

  • In step 1 Creating rician_distribution.m with code as following and try to simulate, the NetSim crashes as soon as the NetSim initializes Matlab


                                    function WLAN= rician_distribution(noncentrality,scale)
h=ProbDistUnivParam('rician',[noncentrality,scale]);
i=random(h,1);
                                    WLAN=i;


  • This is because the function h=ProbDistUnivParam('rician',[noncentrality,scale]);  used in rician_distribution.m is not available in the Matlab R2017b


  • Instead user can replace using function h=makedist('rician',noncentrality,scale); in rician_distribution.m file which works in Matlab R2017b.