# how to find intersection point of these graph??

60 views (last 30 days)
Rahul punk on 19 Mar 2019
Commented: Rahul punk on 19 Mar 2019
filename = 'gg.csv';
filename = 'gg.csv';
sheet = 1;
x1=A(:,1);
y1=A(:,2);
hold on
set(gcf, 'Units', 'Normalized', 'OuterPosition', [0 0 1 1]);
set(gcf, 'Name', 'champion manufactering', 'NumberTitle', 'Off')
x2=[0 200 400 700];
y2=[55 65 70 40];
plot(x1,y1);
plot(x2,y2);
hold off

#### 1 Comment

Rahul punk on 19 Mar 2019

KSSV on 19 Mar 2019
Use this file exchange function:

KSSV on 19 Mar 2019
x1 = num(:,1) ; y1 = num(:,2) ;
x2=[0 200 400 700];
y2=[55 65 70 40];
L1 = [x1 y1]' ;
L2 = [x2 ; y2] ;
P = InterX(L1,L2) ;
plot(x1,y1,'r')
hold on
plot(x2,y2,'b')
plot(P(1,:),P(2,:),'*g')
Rahul punk on 19 Mar 2019
kssv!, sir very thanful for give for valuable time to write code ,no words for your wonderfull help thank so much!
Rahul punk on 19 Mar 2019
sir one more how to count these intersection point
and code show me error! some time .

KSSV on 19 Mar 2019

Rahul punk on 19 Mar 2019
p show some value but i have multiply by 20 and then disp values
Rahul punk on 19 Mar 2019
m=p*20;
disp(m)