# h(x) = sign(w'x) # x = [x_0, x_1, ..., x_N]' function h = perceptron(X, w) h = sign(X * w); end