--- a +++ b/sigmoid.m @@ -0,0 +1,8 @@ +function g = sigmoid(z) +%SIGMOID Compute sigmoid functoon +% J = SIGMOID(z) computes the sigmoid of z. + +g = 1 ./ (1 + exp(-z)); + + +end