Skip to content

Commit 0fe9101

Browse files
authored
Create Linear(without inbuilt).m
1 parent 6553041 commit 0fe9101

File tree

1 file changed

+9
-0
lines changed

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+
%linear function without using inbuilt func
2+
x = -10:0.01:10;
3+
m = input('Enter the slope');
4+
y = zeros(size(x));
5+
y = m*x;
6+
plot(x,y);
7+
xlabel('x');
8+
ylabel('y');
9+
grid on

0 commit comments

Comments
 (0)