MATLAB: Im really lost here with this question im new to matlab and programming

triangle sides

Write the function sideOf which accepts one side of a right-angle triangle, a or b, and the hypotenuse c as input arguments and outputs the other side b or a

Best Answer

Hint:
function side2Length = sideOf(side1Length, c)
side2Length = ..... (Pythagorean theorem using side1Length and c).....
Related Question