% hopnet.m
%
% differential equation given hopfield parameters 
%   b, A, U, and lambda and the asig activation function
%
% created by:
%       Steven E. Lamberson, Jr.
%
% created on:
%       October 08, 2004

function udot = hopnet(t,u)

global b A U lambda

y = u - U./b;

g = asig(y,lambda);
udot = -b.*y + A*g;