Single layer perceptron MATLAB simulation