How the find the Intersection Points?

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 件のコメント

Swaroop
Swaroop 2015 年 1 月 28 日
Intersection i mean repetition

サインインしてコメントする。

回答 (1 件)

Roger Stafford
Roger Stafford 2015 年 1 月 22 日

0 投票

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 件のコメント

Swaroop
Swaroop 2015 年 1 月 22 日
I don't have a problem in finding the co-ordinates. I did obtain 8 sets of co-ordinates. All I wanna do is to reduce the number of digits after decimal point. After which I wanna check all x-axis values for any repetition(intersection), and then y-axis values.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeResizing and Reshaping Matrices についてさらに検索

質問済み:

2015 年 1 月 22 日

コメント済み:

2015 年 1 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by