function[X]=logistic_switch(tvec,b) X=logistic(b,tvec);