File Exchange

image thumbnail

sigmoid

version 2.02 (108 KB) by Chad Greene
Evaluate a simple sigmoid function.

35 Downloads

Updated 25 Oct 2018

View Version History

View License

This function returns a sigmoid along x values.

Cite As

Chad Greene (2021). sigmoid (https://www.mathworks.com/matlabcentral/fileexchange/51007-sigmoid), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (9)

Chad Greene

@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?

Yukti Khosla

Code:
x = -10:.01:10;
plot(x,sigmoid(x))
I'm getting this error:
Error in sigmoid (line 2)
plot(x,sigmoid(x))

Alex

Emre Eraslan

Chad Greene

@Robert, you're right! I've fixed the typo in the documentation. Thanks for letting me know.

Robert Schmidt

the Examples-tab does shows the wrong equation

Ethan Kyzivat

I updated it to include a third parameter that controls vertical stretch.

Ethan Kyzivat

ben mess wael

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Acknowledgements

Inspired by: sigmoid, sigm_fit

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

sigmoid