Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return false.
among a,b,c., specify the hypotenuse.
that's the tricky part here ;) Check all combinations - too bad 'combvec' doesnt work here
Passes for True, but Failing when I get to false test?? Not sure at the moment what I could be missing.
why is it correct? only because the test case.
a=100, b=20, c=5 will flag true but it not true
Without using str2num or regexp
Return the largest number that is adjacent to a zero
Which values occur exactly three times?
How to find the position of an element in a vector without using the find function
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
Calculate the centroid of a triangle
Side of an equilateral triangle
Is this triangle right-angled?
Length of a short side
Side of a rhombus
Dimensions of a rectangle
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