vinayarun

Sigmoid function code

Mar 16th, 2016
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function g = sigmoid(z)
  2.  
  3. g = 1.0 ./ (1.0 + exp(-z));
  4.  
  5. end
RAW Paste Data