%!demo
%! ## Compute the median for different t Location-Scale distributions
%! data1 = tlsrnd (0, 0.5, 5, 10000, 1);
%! data2 = tlsrnd (0, 1, 5, 10000, 1);
%! pd1 = fitdist (data1, "tLocationScale");
%! pd2 = fitdist (data2, "tLocationScale");
%! median1 = median (pd1)
%! median2 = median (pd2)
%!
%! ## Use this to find the median value, which splits the distribution into
%! ## two equal probability halves, robust to heavy-tailed data.
