Download this file
1 2 3 4 5 6 7 8
function g = sigmoid(z) %SIGMOID Compute sigmoid functoon % J = SIGMOID(z) computes the sigmoid of z. g = 1 ./ (1 + exp(-z)); end