function out = mInf(V,V1,V2)

out = 1/2*(1+tanh((V-V1)/V2));
