circle with three points

์กฐํšŒ ์ˆ˜: 48 (์ตœ๊ทผ 30์ผ)
CaiX
CaiX 2019๋…„ 12์›” 1์ผ
๋‹ต๋ณ€: Image Analyst 2019๋…„ 12์›” 1์ผ
Im writing a program that accepts three points (?, ?) on a circle in a 2- dimensional Cartesian plane as input and returns the center, radius, and vectors ABC from the general equation of a circle ?^2 + ?^2 + A? + B? + C = 0. I know that one can systems of linear equations to solve for ABC however, I don't know how to do it. I started with the program below:
x1 = input('\nEnter first X coordinate: ');
y1 = input('\nEnter first Y coordinate: ');
x2 = input('\nEnter second X coordinate: ');
y2 = input('\nEnter second Y coordinate: ');
x3 = input('\nEnter third X coordinate: ');
y3 = input('\nEnter third Y coordinate: ');
eq1 = x1D + y1E + F == -(x1*2)+(y1*2);
eq2 = x2D + y2E + F == -(x2*2)+(y2*2);
eq3 = x3D + y3E + F == -(x3*2)+(y3*2);
I'd appreciate any help and suggestion. Thank you very much :)
  ๋Œ“๊ธ€ ์ˆ˜: 1
Stephane
Stephane 2019๋…„ 12์›” 1์ผ
An answer here (File Exchange entry) ?

๋Œ“๊ธ€์„ ๋‹ฌ๋ ค๋ฉด ๋กœ๊ทธ์ธํ•˜์‹ญ์‹œ์˜ค.

๋‹ต๋ณ€ (2๊ฐœ)

Jim Riggs
Jim Riggs 2019๋…„ 12์›” 1์ผ

Image Analyst
Image Analyst 2019๋…„ 12์›” 1์ผ

์นดํ…Œ๊ณ ๋ฆฌ

Help Center ๋ฐ File Exchange์—์„œ Image Data Workflows์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

ํƒœ๊ทธ

Community Treasure Hunt

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

Start Hunting!

Translated by