Newton–Raphson’s Method (Newton’s Method) can be used for solving logistic regression. ( ref )
The MATLAB code for this subject is ready for you. You can use it for any application.
You can change all parameters such as sigma and see the effect on the final result.