diff --git a/algorithms/machine_learning/Parametric_ReLU.m b/algorithms/machine_learning/Parametric_ReLU.m new file mode 100644 index 0000000..af8f51f --- /dev/null +++ b/algorithms/machine_learning/Parametric_ReLU.m @@ -0,0 +1,8 @@ +%Parametric ReLU function +x = -10:0.01:10; +a = input('Enter the value of the slope') +y = @(x) (x).*((x > 0)) + (a*x).*((x < 0)) ; +fplot(y); +xlabel('x'); +ylabel('y'); +grid on