Skip to content

Commit 6ccd77b

Browse files
authored
Create ReLU6.m
1 parent 6553041 commit 6ccd77b

File tree

1 file changed

+9
-0
lines changed
  • algorithms/machine_learning/Activation Functions

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
%ReLU6 function
2+
x = -10:0.01:10;
3+
y = x;
4+
y(x<0) = 0;
5+
y(x>=6) = 6;
6+
plot(x,y);
7+
xlabel('x');
8+
ylabel('y');
9+
grid on

0 commit comments

Comments
 (0)