I need to transform the elements of a vector by a logistic function into a vector with elements with values between 0 and 1. I have tried:
S1=(1/(1 + exp(1).^(-1*Stemp)))
S1 and Stemp are vectors containing the same elements.
But get the error message:
Error in Fuzzylogic_cognitive_map (line 13) S1=(1/(1 + exp(1).^(-1*Stemp)))
1 Comment
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/348189-logistic-function-transform-of-vector-values#comment_600444
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/348189-logistic-function-transform-of-vector-values#comment_600444
Sign in to comment.