I dont know where im going wrong with the code

 采纳的回答

The left-hand side should be the variable alone. Change that to
c = sqrt(adj^2 + opp^2)
c^2 cannot be the variable name as it has mathematical operator, on the other hand, c2 is a valid variable name.

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by