This solution is outdated. To rescore this solution, sign in.
-
1 Comment
Piero Cimule
on 21 Jun 2020
d1=sqrt((X(2)-X(1))^2+(Y(2)-Y(1))^2); %distancia de A hasta B
d2=sqrt((X(3)-X(1))^2+(Y(3)-Y(1))^2); %distancia de A hasta C
d3=sqrt((X(3)-X(2))^2+(Y(3)-Y(2))^2); %distancia de B hasta C
s=(d1+d2+d3)/2; %Semiperimetro
y=sqrt(s*(s-d1)*(s-d2)*(s-d3)) %Fórmula de Herón
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!