Bonjour,
J'ai un soucis sous MATLAB.
J'ai 3 points et je voudrais tracer le cercle circonscrit.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
checkpoint(1,1)=1000;
checkpoint(2,1)=1000;
checkpoint(1,2)=1500;
checkpoint(2,2)=1500;
checkpoint(1,3)=2000;
checkpoint(2,3)=1300;
Je calcul l'equation du cercle x^2+y^2+ax+b+y+c=0
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
A=[ checkpoint(1,1)  checkpoint(2,1) 1;
    checkpoint(1,2)  checkpoint(2,2) 1;
    checkpoint(1,3)  checkpoint(2,3) 1;
  ];
B=[ -(checkpoint(1,1)^2+checkpoint(2,1)^2); 
    -(checkpoint(1,2)^2+checkpoint(2,3)^2);
    -(checkpoint(1,3)^2+checkpoint(2,3)^2);
  ];
X=A\B %Contient les coef du cercle.
Mais j'arrive pas a tracer le cercle.