Skip to content

Commit

Permalink
Update sigmoid.m
Browse files Browse the repository at this point in the history
  • Loading branch information
malakar-soham authored Jul 31, 2019
1 parent aeba21d commit 9beea55
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions sigmoid.m
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
function g = sigmoid(z)
%SIGMOID Compute sigmoid function
%SIGMOID Computes sigmoid function
% g = SIGMOID(z) computes the sigmoid of z.

% You need to return the following variables correctly
g = zeros(size(z));

% ====================== YOUR CODE HERE ======================
% Instructions: Compute the sigmoid of each value of z (z can be a matrix,
% vector or scalar).


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


% =============================================================

end

0 comments on commit 9beea55

Please sign in to comment.