The Algorithms logo
The Algorithms
关于捐赠

Parametric Re LU

%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