function g = logistic(x)
% LOGISTIC Compute the sigmoid function g(x) = 1/(1+exp(-x))
% g = logistic(x)

%x = x(:);
g = 1./(1+exp(-x));
