MATLAB: What is the exact reason of this error? I am not getting it. Any help will be appreciated.

negative value in an array

x=[−10 2 4 8 9]'
x=[−10 2 4 8 9]'
Error: Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

Best Answer

Delete − and again add - .