Clear Filters
Clear Filters

How two find the intersection coordinates between these two functions?

1 view (last 30 days)
Good afternoon, I am quite new to Matlab, right now I need to find the intersection between the next two functions, specifically functions a (which is the upper section of a circle) and yc1. I know there are two intersecting points and just need the x coordinates in order to use it as the minimum range for the yc1 function. As you can see if plotted, I want yc1 to start at the intersection with the circular function (a and b).
rin = 1; %radius of circle
dtf = 0.923; %distance to yc1
th = 0:pi/125:2*pi;
a = rin * cos(th); %upper semicircle
b = rin * sin(th); %lower semicircle
hold on
xp = dtf:0.002:0.5+dtf;
yc1 = -(0.2 * (1 - (((xp-dtf)-0.5)/0.5).^(2)).^(1/2)) + 0.2 + 0.2; %intersecting function
The x value of the intersection coordinate for this specific problem equals 0.9324, although I will be changing some constants and need to find a general way to find such intersection. I have tried using intsx = solve(a==yc1,x) with no success. Thank you for your help, I hope I made my objective clear.
BTW, I am using the student version of the software.

Accepted Answer

darova on 12 Jun 2020
try polyxpoly

More Answers (0)


Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!