%basic neuron with one input
%create an input, timeline and synaptic weights
for t=1:100
input(t) = 1.0;
time(t) = t;
w(t) = 0.1;
end;
%calculate input and output over time
for t=1:100
x(t) = input(t);
y(t) = w(t)*x(t);
end;
plot (time, w, 'b');hold;
plot (time, x, 'r');
plot (time, y, 'g');