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;
dtf = 0.923;
th = 0:pi/125:2*pi;
a = rin * cos(th);
b = rin * sin(th);
xp = dtf:0.002:0.5+dtf;
yc1 = -(0.2 * (1 - (((xp-dtf)-0.5)/0.5).^(2)).^(1/2)) + 0.2 + 0.2;
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.