Red pound sign in a variable. Not sure what it means

4 views (last 30 days)
I was writing code in Matlab and rather than typing a 3 I accidently held shift and typed # in the variable name. It showed up as red text and it got me curious as to what this symbol does to a variable. ex variable name R#, where the pound sign was red
  2 Comments
spencer ludington
spencer ludington on 18 Mar 2016
I figured it was something like that. I had just never seen it before and I was curious. Thanks

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 26 Feb 2016
The red symbol means that it’s an illegal character. The pound sign is not recognised as an operator.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!