Skip to content

Commit 0e8504a

Browse files
authored
Merge pull request #39 from Yukti-09/patch-7
Create Linear(without inbuilt).m
2 parents 914985c + 0fe9101 commit 0e8504a

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)