Are single input single output neural networks possible?
You have saturation of the weights which results in constant predictions.
There are several ways to fix that:

Replace hardlim with a standard activation function like ReLU or sigmoid
Pick a different random initialization
Normalize inputs