Using the population balance equation (PBE) to model a crystallization system in MATLAB and Simulink.