MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply TodayTo resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

Asked by Elysi Cochin on 21 Aug 2013

Please can someone help me with sigmoid function. Please can anyone tell me what values i should give for a and b so that i get for

y0=sigmf(0,[a b]) % y0 value less than 0.5

and for

y1=sigmf(1,[a b]) % y1 value greater than 0.5

*No products are associated with this question.*

Answer by Laurent on 21 Aug 2013

Edited by Laurent on 21 Aug 2013

Well, if the only requirement is that y0 < 0.5 for x=0 and y1 > 0.5 for x=1, then for 0 < b < 1 and a > 0 it should work.

Elysi Cochin on 21 Aug 2013

sir for x = 0, it should be a value less than 0.5 and for x = 1, it should be a value greater than 0.5

such a value i need for a and b

## 0 Comments