Implementation of probabilistic neural network in MATLAB