Here is an implementation of the perceptron algorithm in MATLAB:
main.m704 chars35 lines
This implementation performs the perceptron algorithm on the given data, updates the weights using stochastic gradient descent, and tests the resulting model on new data.
gistlibby LogSnag