Skip to content

Commit f56c5d9

Browse files
authored
Merge pull request #44 from Yukti-09/patch-1
Create Threshold(without inbuilt).m
2 parents 75ef761 + 03e54a7 commit f56c5d9

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+
%Threshold function without using inbuilt func
2+
x = -10:0.01:10;
3+
y = zeros(size(x));
4+
y(x>=0)=1;
5+
plot(x,y);
6+
xlabel('x');
7+
ylabel('y');
8+
grid on

0 commit comments

Comments
 (0)