% sigmoid (T8B2)

x=-10:0.1:10;

ben='j';

while ben=='j'
    disp('Sigmoid-Formel: y=a/(1+(exp(b*(c-x)))) ')
    a=input('Parameter a=');
    b=input('Parameter b=');
    c=input('Parameter c=');
    y=a./(1+(exp(b.*(c-x))));
    plot(x,y)
    hold on
    ben=input('Wiederholen? Nein (n) oder Ja (j). ','s');
end

close