1function g = sigmoid(z) 2%SIGMOID Compute sigmoid function 3% g = SIGMOID(z) computes the sigmoid of z. 4 5% You need to return the following variables correctly 6g = zeros(size(z)); 7 8% ====================== YOUR CODE HERE ====================== 9% Instructions: Compute the sigmoid of each value of z (z can be a matrix, 10% vector or scalar). 11 12g = 1./(1+exp(-z)); 13 14 15% ============================================================= 16 17end 18 19