Plot Sigmoid in Matlab

2015-12-24 Beijing

a=2;
x=-10:0.1:10;
y=1./[1+exp(-a.*x)];
plot(x,y,'b');
grid on;
sigmoid