it was hard..nic problem
The test has rounding problems.
That was hard to me but not impossible. Great!
but it took so much of time
it's soooooo hard
function y = your_fcn_name(Points, Triangle)
for i = 1:size(Points,1)
po = Points(i,:);
a = sqrt((p1(1)-p2(1))^2+(p1(2)-p2(2))^2);
b = sqrt((p1(1)-p3(1))^2+(p1(2)-p3(2))^2);
c = sqrt((p3(1)-p2(1))^2+(p3(2)-p2(2))^2);
alpha = rad2deg(acos((d1^2+d2^2-a^2)/(2*d1*d2)));
beta = rad2deg(acos((d1^2+d3^2-b^2)/(2*d1*d3)));
gamma = rad2deg(acos((d2^2+d3^2-c^2)/(2*d2*d3)));
why are competing against phony "Leading solutions" like this:
function ans = your_fcn_name3(varargin)
! echo "function assert(~)" > ./assert.m
This is not a solution, just a clever hack to get around the assertions or what??!!
Indexed Probability Table
Increment a number, given its digits
Angle between Two Vectors
Convert given decimal number to binary number.
Is the Point in a Circle?
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office