MATLAB: When I try to run the following line of code, I get the error message “Error: Unbalanced or unexpected parenthesis or bracket.” Although I understand the content of the error message, I cannot determine what is wrong with the syntax.

unbalanced or unexpected parenthesis or bracket

When I try to run the following line of code, I get the error message "Error: Unbalanced or unexpected parenthesis or bracket." Although I understand the content of the error message, I cannot determine what is wrong with my syntax.
[row,col]=find(mat==1(mat));
Thank you.

Best Answer

1(mat)
is wrong. What's the intent?
Related Question