
function [p] = logistic(z)

p = 1 ./(1+exp(-z));

