20a function used to calculate length of a right triangle's hypotenuse given its other two sides

1 view (last 30 days)
% length F calculates a length
% a function used to calculate length of a right triangle's hypotenuse given its other two sides
% c is outpt argument
% a & b are input arguments
c = sqrt (a.2 + b. 2 ) % combination of arithmetic operations needed to calculate the hypotenuse length
not enough input arguments
error in length F
C= sqrt ( a.2 + b.2) % combination of arithmetic operations needed to calculate the hypotenuse length
>
  3 Comments

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!