Error message received when entering code

 Accepted Answer

Voss
Voss on 7 Dec 2021
'dot' is both a function and a variable. Use clear dot to remove the variable dot.
Then when you run dot(U1,U2), it'll calculate the dot product of U1 and U2 rather than trying to figure out the U1,U2 index of the variable dot.

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!