%% Truncate a Probability Distribution
% Create a default normal probability distribution object.

pd = makedist('Normal')

%
% Truncate the distribution to have a lower limit of -2 and an upper limit of 2.

t = truncate(pd,-2,2)

% The probability distribution function of t is 0 outside the truncation interval (-2,2).
% Copyright 2012 The MathWorks, Inc.