%!demo
%! ## Compute the median for different Nakagami distributions
%! data1 = nakarnd (0.6, 1, 10000, 1);
%! data2 = nakarnd (1, 1, 10000, 1);
%! pd1 = fitdist (data1, "Nakagami");
%! pd2 = fitdist (data2, "Nakagami");
%! median1 = median (pd1)
%! median2 = median (pd2)
%!
%! ## Use this to find the median value, which splits the distribution into
%! ## two equal probability halves, robust to skewness in amplitude data.
