How the find the Intersection Points?
Mostra commenti meno recenti
I have just begun to work with MATLAB. Here is my code to find location/locations for an application, that produces 8 sets of Co-Ordinates. I just wan't to modify the same where the values(resulting co-ordinates) are terminated after 4 decimal place and finally find the point/points of intersection.
%8 set of equations equations each set containing 2 equations and 2 unknown
[x11,y11]= solve('(1178413.941*(-0.0000012))^2=((250-x11)^2+(350-y11)^2)', '(0.000001*1178413.941)^2=((150-x11)^2+(250-y11)^2)');
[x22,y22]= solve('(1178413.941*(0.000001))^2=((150-x22)^2+(250-y22)^2)', '(1178413.941*(-0.000002))^2=((350-x22)^2+(250-y22)^2)');
[x33,y33]= solve('((-0.000002)*1178413.941)^2=((350-x33)^2+(250-y33)^2)', '(1178413.941*(0))^2=((250-x33)^2+(150-y33)^2)');
[x44,y44]= solve('(1178413.941*(0))^2=((250-x44)^2+(150-y44)^2)', '(1178413.941*(-0.0002524))^2=((179.2893-x44)^2+(320.7106-y44)^2)');
[x55,y55]= solve('(1178413.941*(-0.0002524))^2=((179.2893-x55)^2+(320.7106-y55)^2)', ' (1178413.941*(-0.0000074))^2=((320.7106-x55)^2+(320.7106-y55)^2)');
[x66,y66]= solve('(1178413.941*(-0.0000074))^2=((320.7106-x66)^2+(320.7106-y66)^2)', '(1178413.941*(-0.0000034))^2=((320.7106-x66)^2+(179.2893-y66)^2)');
[x77,y77]= solve('(1178413.941*(-0.0000034))^2=((320.7106-x77)^2+(179.2893-y77)^2)', '(1178413.941*(-0.0000032))^2=((179.2893-x77)^2+(179.2893-y77)^2)');
[x88,y88]= solve('(1178413.941*(-0.0000032))^2=((179.2893-x88)^2+(179.2893-y88)^2)', '(1178413.941*(-0.0000012))^2=((250-x88)^2+(350-y88)^2)');
%Assigning Values to variables
a=[x11,y11]
b=[x22,y22]
c=[x33,y33]
d=[x44,y44]
e=[x55,y55]
f=[x66,y66]
g=[x77,y77]
h=[x88,y88]
%Absolute Values
m=abs(a)
n=abs(b)
o=abs(c)
p=abs(d)
q=abs(e)
r=abs(f)
s=abs(g)
t=abs(h)
1 Commento
Swaroop
il 28 Gen 2015
Risposte (1)
Roger Stafford
il 22 Gen 2015
0 voti
You should be aware that your equations are the mathematical equivalent of the geometrical problem of finding the intersections of various pairs of circles. Each pair will have either two solutions, one solution, or no (real) solutions. If you have trouble using 'solve', there are comparatively simple numerical procedures for determining the solutions without the use of 'solve'. For example, I gave one such procedure in the Answer thread #167191.
1 Commento
Swaroop
il 22 Gen 2015
Categorie
Scopri di più su Resizing and Reshaping Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!