This function returns a sigmoid along x values.
Chad Greene (2021). sigmoid (https://www.mathworks.com/matlabcentral/fileexchange/51007-sigmoid), MATLAB Central File Exchange. Retrieved .
@Yukti: That's a very strange error. I cannot replicate it. It's strange because the error is on line 2, but line 2 of the function is commented out, so I'm not sure how there could be an error on Line 2. Did you happen to edit the function? Or do you have another function in your file path called sigmoid?
x = -10:.01:10;
I'm getting this error:
Error in sigmoid (line 2)
@Robert, you're right! I've fixed the typo in the documentation. Thanks for letting me know.
the Examples-tab does shows the wrong equation
I updated it to include a third parameter that controls vertical stretch.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!