MATLAB Answers

0

how to find intersection point of these graph??

Asked by Rahul punk on 19 Mar 2019
Latest activity Commented on by Rahul punk on 19 Mar 2019
Accepted Answer by KSSV
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

hi matlab community please help for this question.

Sign in to comment.

Tags

Products


Release

R2011b

2 Answers

Answer by KSSV
on 19 Mar 2019
 Accepted Answer

  11 Comments

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
kssv!, sir very thanful for give for valuable time to write code ,no words for your wonderfull help thank so much!
sir one more how to count these intersection point
and code show me error! some time .

Sign in to comment.


Answer by KSSV
on 19 Mar 2019

Read about size.

  2 Comments

p show some value but i have multiply by 20 and then disp values
m=p*20;
disp(m)

Sign in to comment.