From: Bruno Luong on
See the following function:

http://www.mathworks.com/matlabcentral/fileexchange/23832-truncated-gaussian

Bruno