I´m reviewing a code from Toronto perceptron MATLAB code
The code is
function [w] = perceptron(X,Y,w_init) w = w_init; for iteration = 1 : 100 %&l
try this:
perceptron([1 2 1 2], [1 0 1 0], 0.5);