[Solved] What is the syntax error “Error: Unbalanced or unexpected parenthesis or bracket.”? [closed]


Looks like you are missing a closing parenthesis, at least, in the second to last line where you have .*sin((y).*sin(z), and missing a * (or another operator) between your )( in several lines. In MATLAB (A)(B) is not A*B.

8

solved What is the syntax error “Error: Unbalanced or unexpected parenthesis or bracket.”? [closed]