Chapter-2 Example 2.1 Write a MATLAB program to generate a few activation functions that are being used in neural networks. Solution The activation functions play a major…