Skip to content

Commit 5a4b1c9

Browse files
authored
Merge pull request #40 from Yukti-09/patch-8
Create Parametric_ReLU.m
2 parents 0e8504a + 6b8b03a commit 5a4b1c9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
%Parametric ReLU function
2+
x = -10:0.01:10;
3+
a = input('Enter the value of the slope')
4+
y = @(x) (x).*((x > 0)) + (a*x).*((x < 0)) ;
5+
fplot(y);
6+
xlabel('x');
7+
ylabel('y');
8+
grid on

0 commit comments

Comments
 (0)