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