How to find the point of intersection of two lines in matlab ?

Illustration
Prince Alex - 2023-11-06T11:20:30+00:00
Question: How to find the point of intersection of two lines in matlab ?

I have two llines say f1 and f2, each having 100 data points. How to find the point of intersection of these two lines or how to find a points in f1 and f2 which have nearly equal values  

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

% You can proceed this way also
 
 
t=0:.1:10; 
y1=sin(t); % say f1
y2=exp(t); %f2
intersection=find(y1==y2);

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!