MATLAB Answers

how to find intersection point of these graph??

96 views (last 30 days)
Rahul punk
Rahul punk on 19 Mar 2019
Commented: Rahul punk on 19 Mar 2019
Screenshot (214).png
filename = 'gg.csv';
A = xlsread(filename);
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
Rahul punk on 19 Mar 2019
hi matlab community please help for this question.

Sign in to comment.

Accepted Answer

KSSV
KSSV on 19 Mar 2019

  11 Comments

Show 8 older comments
KSSV
KSSV on 19 Mar 2019
[num,txt,raw] = xlsread('gg.csv') ;
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')
untitled.png
Rahul punk
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
Rahul punk on 19 Mar 2019
sir one more how to count these intersection point
and code show me error! some time .

Sign in to comment.

More Answers (1)

KSSV
KSSV on 19 Mar 2019
Read about size.

  2 Comments

Rahul punk
Rahul punk on 19 Mar 2019
p show some value but i have multiply by 20 and then disp values

Sign in to comment.

Sign in to answer this question.

Tags

Products


Release

R2011b