%!demo
%! ## Compute the interquartile range for a Piecewise Linear distribution
%! load patients
%! [f, x] = ecdf (Weight);
%! pd = PiecewiseLinearDistribution (x(1:5:end), f(1:5:end));
%! iqr_value = iqr (pd)
%!
%! ## Use this to calculate the interquartile range, which measures the spread
%! ## of the middle 50% of the distribution, helpful for summarizing variability
%! ## in empirical datasets.
