diff --git a/algorithms/machine_learning/Activation Functions/Linear(without inbuilt).m b/algorithms/machine_learning/Activation Functions/Linear(without inbuilt).m new file mode 100644 index 0000000..c4bbbc2 --- /dev/null +++ b/algorithms/machine_learning/Activation Functions/Linear(without inbuilt).m @@ -0,0 +1,9 @@ +%linear function without using inbuilt func +x = -10:0.01:10; +m = input('Enter the slope'); +y = zeros(size(x)); +y = m*x; +plot(x,y); +xlabel('x'); +ylabel('y'); +grid on